public class BlockRay extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BlockRay.RaySearch |
Modifier | Constructor and Description |
---|---|
protected |
BlockRay(World w,
Location position,
Vector vector,
int maxDistance,
Material[] neededType,
BlockRay.RaySearch search,
Material[] filter,
List<Vector> positions) |
Modifier and Type | Method and Description |
---|---|
BlockRayResult |
compile()
Compile the block ray
|
Location |
getBasePosition()
Get the begin point of the 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
|
Location |
getPosition()
Get position of ray.
|
Vector |
getVector()
Direction of ray (rotation of entity by default
|
World |
getWorld()
Get world where is the ray action
|
public World getWorld()
public Location getBasePosition()
public Location getPosition()
public List<Material> getFilter()
public List<Material> getNeededType()
public List<Vector> getNeededPositions()
public Vector getVector()
public BlockRayResult compile()