Class ServerboundEditBookPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundEditBookPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundEditBookPacket(int slot, List<String> pages, @Nullable String title) ServerboundEditBookPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetPages()intgetSlot()@Nullable StringgetTitle()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundEditBookPacket@NonNull ServerboundEditBookPacketwithSlot(int slot) @NonNull ServerboundEditBookPacketMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isTerminal, shouldRunOnGameThread
-
Constructor Details
-
ServerboundEditBookPacket
public ServerboundEditBookPacket(io.netty.buffer.ByteBuf in) -
ServerboundEditBookPacket
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getSlot
public int getSlot() -
getPages
-
getTitle
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withSlot
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPages
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTitle
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-