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() |
getNamepublic CompensatedEntity(int entityId,
EntityType type,
World world)
public boolean isOnGround()
Entitypublic boolean isOp()
Entitypublic void setLocation(Location location)
public Location getLocation()
Entitypublic World getWorld()
Entitypublic double getEyeHeight()
public Location getEyeLocation()
public Vector getRotation()
Entitypublic EntityType getType()
Entitypublic boolean isDead()
Entitypublic int getEntityId()
Entitypublic BoundingBox getBoundingBox()
Entitypublic 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