public class BookUpdateC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private ItemStack |
book |
private boolean |
signed |
private int |
slot |
Constructor and Description |
---|
BookUpdateC2SPacket() |
BookUpdateC2SPacket(ItemStack book,
boolean signed,
int slot) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
ItemStack |
getBook() |
int |
getSlot() |
void |
read(PacketByteBuf buf) |
boolean |
wasSigned() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private ItemStack book
private boolean signed
private int slot
public BookUpdateC2SPacket()
@Environment(value=CLIENT) public BookUpdateC2SPacket(ItemStack book, boolean signed, int slot)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerPlayPacketListener>
IOException
public void apply(ServerPlayPacketListener serverPlayPacketListener)
apply
in interface Packet<ServerPlayPacketListener>
public ItemStack getBook()
public boolean wasSigned()
public int getSlot()