public class CompensatedEntity extends AbstractEntity
Constructor and Description |
---|
CompensatedEntity(int entityId,
EntityType type,
World world) |
Modifier and Type | Method and Description |
---|---|
BoundingBox |
getBoundingBox()
Get the bounding box of the current entity
|
Object |
getDefault()
Get default object which is abstracted by Negativity structure.
|
int |
getEntityId()
Get the entity ID
|
double |
getEyeHeight() |
Location |
getEyeLocation() |
Location |
getLocation()
Get the entity location
|
Vector |
getRotation()
Get the rotation (also called "direction") of the entity
|
EntityType |
getType()
Get the type of the entity
|
World |
getWorld()
Get the world of the entity
|
boolean |
isDead()
Check if the entity is dead
|
boolean |
isOnGround()
Check if the given entity is currently on ground
|
boolean |
isOp()
Check if the actual entity is OP or not
|
void |
sendMessage(String msg) |
void |
setLocation(Location location) |
String |
toString() |
getName
public CompensatedEntity(int entityId, EntityType type, World world)
public boolean isOnGround()
Entity
public boolean isOp()
Entity
public void setLocation(Location location)
public Location getLocation()
Entity
public World getWorld()
Entity
public double getEyeHeight()
public Location getEyeLocation()
public Vector getRotation()
Entity
public EntityType getType()
Entity
public boolean isDead()
Entity
public int getEntityId()
Entity
public BoundingBox getBoundingBox()
Entity
public void sendMessage(String msg)
public Object getDefault()
NegativityObject
For example, when we use World
, beside there is the Spigot/Sponge... world.
We can get the default platform object, in the example, the platform world.
public String toString()
toString
in class AbstractEntity