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
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 NPacketPlayInFlying()
public NPacketPlayInFlying(double x, double y, double z, float yaw, float pitch, boolean isGround, boolean hasPos, boolean hasLook)
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()
getPacketType
in interface NPacket