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, waitgetBlock, getBlockX, getBlockY, getBlockZ, getLocationpublic 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()
LocatedPackethasLocation in interface LocatedPacketpublic double getX()
getX in interface LocatedPacketpublic double getY()
getY in interface LocatedPacketpublic double getZ()
getZ in interface LocatedPacketpublic PacketType getPacketType()
getPacketType in interface NPacket