Class ClientboundRecipePacket

java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundRecipePacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ClientboundRecipePacket extends Object implements MinecraftPacket
  • 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

      public ClientboundRecipePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper)
      Specified by:
      serialize in interface MinecraftPacket
    • getAction

      @NonNull public @NonNull UnlockRecipesAction getAction()
    • getRecipes

      @NonNull public @NonNull String[] 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

      public String[] getAlreadyKnownRecipes()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object
    • withAction

      public @NonNull ClientboundRecipePacket withAction(@NonNull @NonNull UnlockRecipesAction action)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRecipes

      public @NonNull ClientboundRecipePacket withRecipes(@NonNull @NonNull String[] recipes)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withOpenCraftingBook

      public @NonNull ClientboundRecipePacket withOpenCraftingBook(boolean openCraftingBook)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withActivateCraftingFiltering

      public @NonNull ClientboundRecipePacket withActivateCraftingFiltering(boolean activateCraftingFiltering)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withOpenSmeltingBook

      public @NonNull ClientboundRecipePacket withOpenSmeltingBook(boolean openSmeltingBook)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withActivateSmeltingFiltering

      public @NonNull ClientboundRecipePacket withActivateSmeltingFiltering(boolean activateSmeltingFiltering)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withOpenBlastingBook

      public @NonNull ClientboundRecipePacket withOpenBlastingBook(boolean openBlastingBook)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withActivateBlastingFiltering

      public @NonNull ClientboundRecipePacket withActivateBlastingFiltering(boolean activateBlastingFiltering)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withOpenSmokingBook

      public @NonNull ClientboundRecipePacket withOpenSmokingBook(boolean openSmokingBook)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withActivateSmokingFiltering

      public @NonNull ClientboundRecipePacket withActivateSmokingFiltering(boolean activateSmokingFiltering)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAlreadyKnownRecipes

      public @NonNull ClientboundRecipePacket withAlreadyKnownRecipes(String[] alreadyKnownRecipes)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).