public class NPacketPlayOutPosition extends Object implements NPacketPlayOut, LocatedPacket
Modifier and Type | Class and Description |
---|---|
static class |
NPacketPlayOutPosition.EnumPlayerTeleportFlags |
Modifier and Type | Field and Description |
---|---|
List<NPacketPlayOutPosition.EnumPlayerTeleportFlags> |
flags |
float |
pitch |
boolean |
shouldDismount
Since 1.17
|
int |
teleportId
Since 1.9
|
double |
x
Warn: those values can be relative (and not absolute) according to
flags |
double |
y
Warn: those values can be relative (and not absolute) according to
flags |
float |
yaw |
double |
z
Warn: those values can be relative (and not absolute) according to
flags |
Constructor and Description |
---|
NPacketPlayOutPosition() |
Modifier and Type | Method and Description |
---|---|
PacketType |
getPacketType()
Get type of packet
|
double |
getX() |
double |
getY() |
double |
getZ() |
void |
read(PacketSerializer serializer,
Version version)
Read packet from given serializer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, getPacketName, write
getBlock, getBlockX, getBlockY, getBlockZ, getLocation, hasLocation
public int teleportId
public double x
flags
public double y
flags
public double z
flags
public float yaw
public float pitch
public List<NPacketPlayOutPosition.EnumPlayerTeleportFlags> flags
public boolean shouldDismount
public void read(PacketSerializer serializer, Version version)
NPacket
public double getX()
getX
in interface LocatedPacket
public double getY()
getY
in interface LocatedPacket
public double getZ()
getZ
in interface LocatedPacket
public PacketType getPacketType()
NPacket
getPacketType
in interface NPacket