Entity

This page will document the Entity object

getX(): double

Returns the X position of the entity

getY(): double

Returns the Y position of the entity

getZ(): double

Returns the Z position of the entity

getPosition(): Vec3

Returns a Vec3 of the entity's position

getLastX(): double

Returns the X position of the entity in the last tick

getLastY(): double

Returns the Y position of the entity in the last tick

getLastZ(): double

Returns the Z position of the entity in the last tick

getLastPosition(): Vec3

Returns a Vec3 of the entity's position in the last tick

getMotionX(): double

Returns the motionX of the entity

getMotionY(): double

Returns the motionY of the entity

getMotionZ(): double

Returns the motionZ of the entity

getYaw(): double

Returns the yaw rotation of the entity

getPitch(): double

Returns the pitch rotation of the entity

getLastYaw(): double

Returns the yaw rotation of the entity in the last tick

getLastPitch(): double

Returns the pitch rotation of the entity in the last tick

getTicksExisted(): int

Returns the amount of ticks this entity has existed for

getEntityId(): int

Returns the ID of this entity

getBoundingBox(): AxisAlingenedBB

Returns the bounding box of a entity as AxisAlingenedBB

getDisplayName(): String

Returns the unformatted display name of this name

getDistanceToEntity(Entity entity): double

Returns the distance from this entity's position to the given entity's position

getDistanceToPos(double x, double y, double z): double

Returns the distance to the given position

getDistanceToPos(Vec3 position): double

Returns the distance to the given position

Last updated