Class ClientboundRecipePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRecipePacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundRecipePacket(@NonNull String[] recipes, boolean openCraftingBook, boolean activateCraftingFiltering, boolean openSmeltingBook, boolean activateSmeltingFiltering, boolean openBlastingBook, boolean activateBlastingFiltering, boolean openSmokingBook, boolean activateSmokingFiltering, @NonNull String[] alreadyKnownRecipes) ClientboundRecipePacket(@NonNull String[] recipes, boolean openCraftingBook, boolean activateCraftingFiltering, boolean openSmeltingBook, boolean activateSmeltingFiltering, boolean openBlastingBook, boolean activateBlastingFiltering, boolean openSmokingBook, boolean activateSmokingFiltering, @NonNull UnlockRecipesAction action) ClientboundRecipePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull UnlockRecipesActionString[]@NonNull String[]inthashCode()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundRecipePacketwithAction(@NonNull UnlockRecipesAction action) @NonNull ClientboundRecipePacketwithActivateBlastingFiltering(boolean activateBlastingFiltering) @NonNull ClientboundRecipePacketwithActivateCraftingFiltering(boolean activateCraftingFiltering) @NonNull ClientboundRecipePacketwithActivateSmeltingFiltering(boolean activateSmeltingFiltering) @NonNull ClientboundRecipePacketwithActivateSmokingFiltering(boolean activateSmokingFiltering) @NonNull ClientboundRecipePacketwithAlreadyKnownRecipes(String[] alreadyKnownRecipes) @NonNull ClientboundRecipePacketwithOpenBlastingBook(boolean openBlastingBook) @NonNull ClientboundRecipePacketwithOpenCraftingBook(boolean openCraftingBook) @NonNull ClientboundRecipePacketwithOpenSmeltingBook(boolean openSmeltingBook) @NonNull ClientboundRecipePacketwithOpenSmokingBook(boolean openSmokingBook) @NonNull ClientboundRecipePacketwithRecipes(@NonNull String[] recipes) 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
-
Constructor Details
-
ClientboundRecipePacket
public ClientboundRecipePacket(@NonNull @NonNull String[] recipes, boolean openCraftingBook, boolean activateCraftingFiltering, boolean openSmeltingBook, boolean activateSmeltingFiltering, boolean openBlastingBook, boolean activateBlastingFiltering, boolean openSmokingBook, boolean activateSmokingFiltering, @NonNull @NonNull UnlockRecipesAction action) -
ClientboundRecipePacket
public ClientboundRecipePacket(@NonNull @NonNull String[] recipes, boolean openCraftingBook, boolean activateCraftingFiltering, boolean openSmeltingBook, boolean activateSmeltingFiltering, boolean openBlastingBook, boolean activateBlastingFiltering, boolean openSmokingBook, boolean activateSmokingFiltering, @NonNull @NonNull String[] alreadyKnownRecipes) -
ClientboundRecipePacket
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getAction
-
getRecipes
-
isOpenCraftingBook
public boolean isOpenCraftingBook() -
isActivateCraftingFiltering
public boolean isActivateCraftingFiltering() -
isOpenSmeltingBook
public boolean isOpenSmeltingBook() -
isActivateSmeltingFiltering
public boolean isActivateSmeltingFiltering() -
isOpenBlastingBook
public boolean isOpenBlastingBook() -
isActivateBlastingFiltering
public boolean isActivateBlastingFiltering() -
isOpenSmokingBook
public boolean isOpenSmokingBook() -
isActivateSmokingFiltering
public boolean isActivateSmokingFiltering() -
getAlreadyKnownRecipes
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withAction
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRecipes
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withOpenCraftingBook
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withActivateCraftingFiltering
public @NonNull ClientboundRecipePacket withActivateCraftingFiltering(boolean activateCraftingFiltering) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withOpenSmeltingBook
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withActivateSmeltingFiltering
public @NonNull ClientboundRecipePacket withActivateSmeltingFiltering(boolean activateSmeltingFiltering) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withOpenBlastingBook
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withActivateBlastingFiltering
public @NonNull ClientboundRecipePacket withActivateBlastingFiltering(boolean activateBlastingFiltering) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withOpenSmokingBook
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withActivateSmokingFiltering
public @NonNull ClientboundRecipePacket withActivateSmokingFiltering(boolean activateSmokingFiltering) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAlreadyKnownRecipes
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-