S18PacketEntityTeleport

getEntity(): Entity

Returns an Entity object representing the entity associated with this teleport packet. This method provides access to the entity that is being teleported.

getX(): double

Retrieves the X-coordinate of the entity's teleportation destination.

getY(): double

Retrieves the Y-coordinate of the entity's teleportation destination.

getZ(): double

Retrieves the Z-coordinate of the entity's teleportation destination.

getYaw(): double

Returns the yaw (horizontal rotation) of the entity at the teleportation destination.

getPitch(): double

Provides the pitch (vertical rotation) of the entity at the teleportation destination.

getOnGround(): boolean

Determines whether the entity is on the ground at the teleportation destination. Returns true if the entity is on the ground, false otherwise.

Last updated