Class RecipeCollection

java.lang.Object
net.minecraft.client.gui.screens.recipebook.RecipeCollection

public class RecipeCollection extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • allRecipesHaveSameResult

      private static boolean allRecipesHaveSameResult(RegistryAccess pRegistryAccess, List<RecipeHolder<?>> pRecipes)
    • registryAccess

      public RegistryAccess registryAccess()
    • hasKnownRecipes

      public boolean hasKnownRecipes()
    • updateKnownRecipes

      public void updateKnownRecipes(RecipeBook pBook)
    • canCraft

      public void canCraft(StackedContents pHandler, int pWidth, int pHeight, RecipeBook pBook)
    • isCraftable

      public boolean isCraftable(RecipeHolder<?> pRecipe)
    • hasCraftable

      public boolean hasCraftable()
    • hasFitting

      public boolean hasFitting()
    • getRecipes

      public List<RecipeHolder<?>> getRecipes()
    • getRecipes

      public List<RecipeHolder<?>> getRecipes(boolean pOnlyCraftable)
    • getDisplayRecipes

      public List<RecipeHolder<?>> getDisplayRecipes(boolean pCraftable)
      Parameters:
      pCraftable - If true, this method will only return craftable recipes. If false, this method will only return uncraftable recipes.
    • hasSingleResultItem

      public boolean hasSingleResultItem()