Class RecipeItemHelper.RecipePicker

java.lang.Object
net.minecraft.item.crafting.RecipeItemHelper.RecipePicker
Enclosing class:
RecipeItemHelper

class RecipeItemHelper.RecipePicker extends Object
  • Field Details

    • recipe

      private final IRecipe<?> recipe
    • ingredients

      private final List<Ingredient> ingredients
    • ingredientCount

      private final int ingredientCount
    • items

      private final int[] items
    • itemCount

      private final int itemCount
    • data

      private final BitSet data
    • path

      private final it.unimi.dsi.fastutil.ints.IntList path
  • Constructor Details

    • RecipePicker

      public RecipePicker(IRecipe<?> p_i47608_2_)
  • Method Details

    • tryPick

      public boolean tryPick(int p_194092_1_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_194092_2_)
    • getUniqueAvailableIngredientItems

      private int[] getUniqueAvailableIngredientItems()
    • dfs

      private boolean dfs(int p_194098_1_)
    • isSatisfied

      private boolean isSatisfied(int p_194091_1_)
    • setSatisfied

      private void setSatisfied(int p_194096_1_)
    • getSatisfiedIndex

      private int getSatisfiedIndex(int p_194094_1_)
    • hasConnection

      private boolean hasConnection(boolean p_194093_1_, int p_194093_2_, int p_194093_3_)
    • hasResidual

      private boolean hasResidual(boolean p_194100_1_, int p_194100_2_, int p_194100_3_)
    • toggleResidual

      private void toggleResidual(boolean p_194089_1_, int p_194089_2_, int p_194089_3_)
    • getIndex

      private int getIndex(boolean p_194095_1_, int p_194095_2_, int p_194095_3_)
    • visit

      private void visit(boolean p_194088_1_, int p_194088_2_)
    • hasVisited

      private boolean hasVisited(boolean p_194101_1_, int p_194101_2_)
    • getVisitedIndex

      private int getVisitedIndex(boolean p_194099_1_, int p_194099_2_)
    • tryPickAll

      public int tryPickAll(int p_194102_1_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_194102_2_)
    • getMinIngredientCount

      private int getMinIngredientCount()