Class RecipeCollection

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

public class RecipeCollection extends Object
  • Field Details

    • registryAccess

      private final RegistryAccess registryAccess
    • recipes

      private final List<Recipe<?>> recipes
    • singleResultItem

      private final boolean singleResultItem
    • craftable

      private final Set<Recipe<?>> craftable
    • fitsDimensions

      private final Set<Recipe<?>> fitsDimensions
    • known

      private final Set<Recipe<?>> known
  • Constructor Details

  • Method Details

    • allRecipesHaveSameResult

      private static boolean allRecipesHaveSameResult(RegistryAccess p_267210_, List<Recipe<?>> p_100509_)
    • registryAccess

      public RegistryAccess registryAccess()
    • hasKnownRecipes

      public boolean hasKnownRecipes()
    • updateKnownRecipes

      public void updateKnownRecipes(RecipeBook p_100500_)
    • canCraft

      public void canCraft(StackedContents p_100502_, int p_100503_, int p_100504_, RecipeBook p_100505_)
    • isCraftable

      public boolean isCraftable(Recipe<?> p_100507_)
    • hasCraftable

      public boolean hasCraftable()
    • hasFitting

      public boolean hasFitting()
    • getRecipes

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

      public List<Recipe<?>> getRecipes(boolean p_100511_)
    • getDisplayRecipes

      public List<Recipe<?>> getDisplayRecipes(boolean p_100514_)
    • hasSingleResultItem

      public boolean hasSingleResultItem()