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, waitcreate, getPacketName, writegetBlock, getBlockX, getBlockY, getBlockZpublic 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)
NPacketpublic boolean hasLocation()
LocatedPackethasLocation in interface LocatedPacketpublic Location getLocation(World w)
Location object but only according to hasPos and hasLook values.getLocation in interface LocatedPacketw - the world on the locationpublic double getX()
getX in interface LocatedPacketpublic double getY()
getY in interface LocatedPacketpublic double getZ()
getZ in interface LocatedPacketpublic PacketType getPacketType()
NPacketgetPacketType in interface NPacket