Class ClientboundRecipeBookSettingsPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRecipeBookSettingsPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundRecipeBookSettingsPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) ClientboundRecipeBookSettingsPacket(Map<CraftingBookStateType, org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRecipeBookSettingsPacket.TypeSettings> states) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMap<CraftingBookStateType,org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRecipeBookSettingsPacket.TypeSettings> inthashCode()voidserialize(io.netty.buffer.ByteBuf buf, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundRecipeBookSettingsPacketwithStates(Map<CraftingBookStateType, org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRecipeBookSettingsPacket.TypeSettings> states) Methods 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
-
ClientboundRecipeBookSettingsPacket
public ClientboundRecipeBookSettingsPacket(Map<CraftingBookStateType, org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRecipeBookSettingsPacket.TypeSettings> states)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getStates
public Map<CraftingBookStateType,org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRecipeBookSettingsPacket.TypeSettings> getStates() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withStates
public @NonNull ClientboundRecipeBookSettingsPacket withStates(Map<CraftingBookStateType, org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRecipeBookSettingsPacket.TypeSettings> states) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-