Entity
This page will document the Entity object
getX(): double
getX(): doubleReturns the X position of the entity
getY(): double
getY(): doubleReturns the Y position of the entity
getZ(): double
getZ(): doubleReturns the Z position of the entity
getPosition(): Vec3
getPosition(): Vec3Returns a Vec3 of the entity's position
getLastX(): double
getLastX(): doubleReturns the X position of the entity in the last tick
getLastY(): double
getLastY(): doubleReturns the Y position of the entity in the last tick
getLastZ(): double
getLastZ(): doubleReturns the Z position of the entity in the last tick
getLastPosition(): Vec3
getLastPosition(): Vec3Returns a Vec3 of the entity's position in the last tick
getMotionX(): double
getMotionX(): doubleReturns the motionX of the entity
getMotionY(): double
getMotionY(): doubleReturns the motionY of the entity
getMotionZ(): double
getMotionZ(): doubleReturns the motionZ of the entity
getYaw(): double
getYaw(): doubleReturns the yaw rotation of the entity
getPitch(): double
getPitch(): doubleReturns the pitch rotation of the entity
getLastYaw(): double
getLastYaw(): doubleReturns the yaw rotation of the entity in the last tick
getLastPitch(): double
getLastPitch(): doubleReturns the pitch rotation of the entity in the last tick
getTicksExisted(): int
getTicksExisted(): intReturns the amount of ticks this entity has existed for
getEntityId(): int
getEntityId(): intReturns the ID of this entity
getBoundingBox(): AxisAlingenedBB
getBoundingBox(): AxisAlingenedBBReturns the bounding box of a entity as AxisAlingenedBB
getDisplayName(): String
getDisplayName(): StringReturns 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): doubleReturns the distance to the given position
Returns the distance to the given position
Last updated