Class ClientboundRecipeBookAddPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRecipeBookAddPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionClientboundRecipeBookAddPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) ClientboundRecipeBookAddPacket(List<ClientboundRecipeBookAddPacket.Entry> entries, boolean replace) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundRecipeBookAddPacket@NonNull ClientboundRecipeBookAddPacketwithReplace(boolean replace) 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
-
ClientboundRecipeBookAddPacket
-
ClientboundRecipeBookAddPacket
public ClientboundRecipeBookAddPacket(List<ClientboundRecipeBookAddPacket.Entry> entries, boolean replace)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getEntries
-
isReplace
public boolean isReplace() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withEntries
public @NonNull ClientboundRecipeBookAddPacket withEntries(List<ClientboundRecipeBookAddPacket.Entry> entries) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReplace
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-