public class NPacketPlayInFlying extends Object implements NPacketPlayIn, LocatedPacket
Modifier and Type | Field and Description |
---|---|
boolean |
hasLook |
boolean |
hasPos |
boolean |
isGround |
float |
pitch |
double |
x |
double |
y |
float |
yaw |
double |
z |
Constructor and Description |
---|
NPacketPlayInFlying() |
Modifier and Type | Method and Description |
---|---|
Location |
getLocation(World w)
Warn: THIS CAN RETURN NULL.
|
PacketType |
getPacketType()
Get type of packet
|
double |
getX() |
double |
getY() |
double |
getZ() |
boolean |
hasLocation()
Check if this packet has valid location
|
void |
read(PacketSerializer serializer,
Version version)
Read packet from given serializer.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
create, getPacketName, write
getBlock, getBlockX, getBlockY, getBlockZ
public double x
public double y
public double z
public float yaw
public float pitch
public boolean hasPos
public boolean hasLook
public boolean isGround
public void read(PacketSerializer serializer, Version version)
NPacket
public boolean hasLocation()
LocatedPacket
hasLocation
in interface LocatedPacket
public Location getLocation(World w)
Location
object but only according to hasPos
and hasLook
values.getLocation
in interface LocatedPacket
w
- the world on the locationpublic 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