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() |
NPacketPlayInFlying(double x,
double y,
double z,
float yaw,
float pitch,
boolean isGround,
boolean hasPos,
boolean hasLook) |
| Modifier and Type | Method and Description |
|---|---|
Location |
getLocation(World w)
Warn: THIS CAN RETURN NULL.
|
PacketType |
getPacketType() |
double |
getX() |
double |
getY() |
double |
getZ() |
boolean |
hasLocation()
Check if this packet has valid location
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlock, 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 NPacketPlayInFlying()
public NPacketPlayInFlying(double x,
double y,
double z,
float yaw,
float pitch,
boolean isGround,
boolean hasPos,
boolean hasLook)
public 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()
getPacketType in interface NPacket