public class NPacketPlayInUseItem extends Object implements NPacketPlayIn, LocatedPacket
Modifier and Type | Field and Description |
---|---|
BlockFace |
direction |
long |
timestamp
WARN: this value seems to doesn't exist in some version such as 1.9.
|
int |
x |
int |
y |
int |
z |
Constructor and Description |
---|
NPacketPlayInUseItem() |
NPacketPlayInUseItem(int x,
int y,
int z,
BlockFace dir,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
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, wait
getBlock, getBlockX, getBlockY, getBlockZ, getLocation
public BlockFace direction
public int x
public int y
public int z
public long timestamp
public NPacketPlayInUseItem()
public NPacketPlayInUseItem(int x, int y, int z, BlockFace dir, long timestamp)
public boolean hasLocation()
LocatedPacket
hasLocation
in interface LocatedPacket
public 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