Entity
This page will document the Entity object
getX(): double
getX(): double
Returns the X position of the entity
getY(): double
getY(): double
Returns the Y position of the entity
getZ(): double
getZ(): double
Returns the Z position of the entity
getPosition():
Vec3
getPosition():
Vec3
Returns a Vec3 of the entity's position
getLastX(): double
getLastX(): double
Returns the X position of the entity in the last tick
getLastY(): double
getLastY(): double
Returns the Y position of the entity in the last tick
getLastZ(): double
getLastZ(): double
Returns the Z position of the entity in the last tick
getLastPosition():
Vec3
getLastPosition():
Vec3
Returns a Vec3 of the entity's position in the last tick
getMotionX(): double
getMotionX(): double
Returns the motionX
of the entity
getMotionY(): double
getMotionY(): double
Returns the motionY
of the entity
getMotionZ(): double
getMotionZ(): double
Returns the motionZ
of the entity
getYaw(): double
getYaw(): double
Returns the yaw
rotation of the entity
getPitch(): double
getPitch(): double
Returns the pitch
rotation of the entity
getLastYaw(): double
getLastYaw(): double
Returns the yaw
rotation of the entity in the last tick
getLastPitch(): double
getLastPitch(): double
Returns the pitch
rotation of the entity in the last tick
getTicksExisted(): int
getTicksExisted(): int
Returns the amount of ticks this entity has existed for
getEntityId(): int
getEntityId(): int
Returns the ID of this entity
getBoundingBox():
AxisAlingenedBB
getBoundingBox():
AxisAlingenedBB
Returns the bounding box of a entity as AxisAlingenedBB
getDisplayName(): String
getDisplayName(): String
Returns the unformatted display name of this name
Returns the distance from this entity's position to the given entity's position
getDistanceToPos(double x, double y, double z): double
getDistanceToPos(double x, double y, double z): double
Returns the distance to the given position
Returns the distance to the given position
Last updated