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 registryAccess, List<RecipeHolder<?>> recipes)
    • registryAccess

      public RegistryAccess registryAccess()
    • hasKnownRecipes

      public boolean hasKnownRecipes()
    • updateKnownRecipes

      public void updateKnownRecipes(RecipeBook book)
    • canCraft

      public void canCraft(StackedContents handler, int width, int height, RecipeBook book)
    • isCraftable

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

      public boolean hasCraftable()
    • hasFitting

      public boolean hasFitting()
    • getRecipes

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

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

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

      public boolean hasSingleResultItem()