public class OpenWrittenBookS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Constructor and Description |
---|
OpenWrittenBookS2CPacket() |
OpenWrittenBookS2CPacket(Hand hand) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
Hand |
getHand() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private Hand hand
public OpenWrittenBookS2CPacket()
public OpenWrittenBookS2CPacket(Hand hand)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public Hand getHand()