Class BookUpdateC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.BookUpdateC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class BookUpdateC2SPacket extends Object implements Packet<ServerPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BookUpdateC2SPacket()BookUpdateC2SPacket(ItemStack book, boolean signed, int slot) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)ItemStackgetBook()intgetSlot()voidread(PacketByteBuf buf)booleanwasSigned()voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
book
-
signed
private boolean signed -
slot
private int slot
-
-
Constructor Details
-
BookUpdateC2SPacket
public BookUpdateC2SPacket() -
BookUpdateC2SPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>
-
getBook
-
wasSigned
public boolean wasSigned() -
getSlot
public int getSlot()
-