Class StackedContents.RecipePicker

java.lang.Object
net.minecraft.world.entity.player.StackedContents.RecipePicker
Enclosing class:
StackedContents

class StackedContents.RecipePicker extends Object
  • Field Details

    • recipe

      private final Recipe<?> 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(Recipe<?> p_36508_)
  • Method Details

    • tryPick

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

      private int[] getUniqueAvailableIngredientItems()
    • dfs

      private boolean dfs(int p_36511_)
    • isSatisfied

      private boolean isSatisfied(int p_36524_)
    • setSatisfied

      private void setSatisfied(int p_36536_)
    • getSatisfiedIndex

      private int getSatisfiedIndex(int p_36545_)
    • hasConnection

      private boolean hasConnection(boolean p_36519_, int p_36520_, int p_36521_)
    • hasResidual

      private boolean hasResidual(boolean p_36532_, int p_36533_, int p_36534_)
    • toggleResidual

      private void toggleResidual(boolean p_36541_, int p_36542_, int p_36543_)
    • getIndex

      private int getIndex(boolean p_36547_, int p_36548_, int p_36549_)
    • visit

      private void visit(boolean p_36516_, int p_36517_)
    • hasVisited

      private boolean hasVisited(boolean p_36529_, int p_36530_)
    • getVisitedIndex

      private int getVisitedIndex(boolean p_36538_, int p_36539_)
    • tryPickAll

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

      private int getMinIngredientCount()