public class BlockRay extends AbstractRay<BlockRayResult>
basePosition, lastDistance, maxDistance, position, testedVec, vector, w
Modifier | Constructor and Description |
---|---|
protected |
BlockRay(World w,
Location position,
Vector vector,
int maxDistance,
Material[] neededType,
BlockRaySearch search,
Material[] filter,
List<Vector> positions) |
Modifier and Type | Method and Description |
---|---|
protected BlockRayResult |
createResult(RayResult ray) |
List<Material> |
getFilter()
Get filter (block which ray pass through)
Contains AIR if "ignoreAir" is on true
|
List<Vector> |
getNeededPositions()
Get needed positions
|
List<Material> |
getNeededType()
Get needed material
Return null if you don't search specific material
|
protected RayResult |
tryLocation(Vector v) |
compile, getBasePosition, getLastDistance, getPosition, getTestedVectors, getVector, getWorld, tryLoc0
public List<Material> getFilter()
public List<Material> getNeededType()
public List<Vector> getNeededPositions()
protected BlockRayResult createResult(RayResult ray)
createResult
in class AbstractRay<BlockRayResult>
protected RayResult tryLocation(Vector v)
tryLocation
in class AbstractRay<BlockRayResult>