public class EntityRay extends Object
Modifier | Constructor and Description |
---|---|
protected |
EntityRay(World w,
Location position,
Vector vector,
int maxDistance,
boolean onlyPlayers,
List<Entity> bypassEntities) |
Modifier and Type | Method and Description |
---|---|
EntityRayResult |
compile()
Compile the block ray
|
Location |
getBasePosition()
Get the begin point of the ray.
|
List<Entity> |
getEntities()
Get all entities
|
List<Vector> |
getNeededPositions()
Get needed positions
|
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<Vector> getNeededPositions()
public Vector getVector()
public EntityRayResult compile()