public class BookUpdateC2SPacket extends Object implements Packet<ServerPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private ItemStack |
book |
private int |
field_26897 |
private boolean |
signed |
| Constructor and Description |
|---|
BookUpdateC2SPacket() |
BookUpdateC2SPacket(ItemStack book,
boolean signed,
int int2) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
ItemStack |
getBook() |
int |
method_12235() |
void |
read(PacketByteBuf buf) |
boolean |
wasSigned() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate ItemStack book
private boolean signed
private int field_26897
public BookUpdateC2SPacket()
@Environment(value=CLIENT) public BookUpdateC2SPacket(ItemStack book, boolean signed, int int2)
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 ItemStack getBook()
public boolean wasSigned()
public int method_12235()