Package devs.beer.nativepackets.api
Interface TeleportEntityPacketView
- All Superinterfaces:
PacketView
Lazy copy-on-write view of a clientbound entity teleport.
-
Method Summary
Methods inherited from interface devs.beer.nativepackets.api.PacketView
isModified, nativeHandle, type
-
Method Details
-
entityId
int entityId()- Returns:
- native entity ID
-
x
double x()- Returns:
- X position
-
y
double y()- Returns:
- Y position
-
z
double z()- Returns:
- Z position
-
yaw
float yaw()- Returns:
- yaw in degrees
-
pitch
float pitch()- Returns:
- pitch in degrees
-
onGround
boolean onGround()- Returns:
- whether the entity is on the ground
-
position
void position(double x, double y, double z) Replaces the absolute teleport position.
-