Interface UpdateRecipesPacketView

All Superinterfaces:
PacketView

public interface UpdateRecipesPacketView extends PacketView
Lazy view of clientbound recipe-registry synchronization.
  • Method Details

    • hasLegacyRecipes

      boolean hasLegacyRecipes()
      Reports whether this version exposes the legacy indexed recipe list.
    • recipeCount

      int recipeCount()
      Returns the legacy recipe count, or zero for the modern payload shape.
    • recipe

      NativeRecipe recipe(int index)
    • removeRecipe

      void removeRecipe(int index)
      Removes one legacy recipe using copy-on-write.
    • primaryPayload

      NativeValue primaryPayload()
      Returns the exact primary payload without copying it.
    • secondaryPayload

      @Nullable NativeValue secondaryPayload()
      Returns the exact secondary payload when the protocol carries one.