public class PlayerInteractItemC2SPacket extends Object implements Packet<ServerPlayPacketListener>
| Constructor and Description |
|---|
PlayerInteractItemC2SPacket() |
PlayerInteractItemC2SPacket(Hand hand) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
Hand |
getHand() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate Hand hand
public PlayerInteractItemC2SPacket()
public PlayerInteractItemC2SPacket(Hand hand)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ServerPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ServerPlayPacketListener>IOExceptionpublic void apply(ServerPlayPacketListener serverPlayPacketListener)
apply in interface Packet<ServerPlayPacketListener>public Hand getHand()