Class ClientboundRecipeBookSettingsPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRecipeBookSettingsPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionClientboundRecipeBookSettingsPacket(io.netty.buffer.ByteBuf in) ClientboundRecipeBookSettingsPacket(Map<CraftingBookStateType, ClientboundRecipeBookSettingsPacket.TypeSettings> states) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()voidserialize(io.netty.buffer.ByteBuf buf) @NonNull StringtoString()@NonNull ClientboundRecipeBookSettingsPacketMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundRecipeBookSettingsPacket
public ClientboundRecipeBookSettingsPacket(io.netty.buffer.ByteBuf in) -
ClientboundRecipeBookSettingsPacket
public ClientboundRecipeBookSettingsPacket(Map<CraftingBookStateType, ClientboundRecipeBookSettingsPacket.TypeSettings> states)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf buf) - Specified by:
serializein interfaceMinecraftPacket
-
getStates
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withStates
public @NonNull ClientboundRecipeBookSettingsPacket withStates(Map<CraftingBookStateType, ClientboundRecipeBookSettingsPacket.TypeSettings> states) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-