类 StackedContents.RecipePicker

java.lang.Object
net.minecraft.world.entity.player.StackedContents.RecipePicker
封闭类:
StackedContents

class StackedContents.RecipePicker extends Object
  • 字段详细资料

    • 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
  • 构造器详细资料

    • RecipePicker

      public RecipePicker(Recipe<?> pRecipe)
  • 方法详细资料

    • tryPick

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

      private int[] getUniqueAvailableIngredientItems()
    • dfs

      private boolean dfs(int pAmount)
    • isSatisfied

      private boolean isSatisfied(int pStackingIndex)
    • setSatisfied

      private void setSatisfied(int pStackingIndex)
    • getSatisfiedIndex

      private int getSatisfiedIndex(int pStackingIndex)
    • hasConnection

      private boolean hasConnection(boolean pIsIngredientPath, int pStackingIndex, int pPathIndex)
    • hasResidual

      private boolean hasResidual(boolean pIsIngredientPath, int pStackingIndex, int pPathIndex)
    • toggleResidual

      private void toggleResidual(boolean pIsIngredientPath, int pStackingIndex, int pPathIndex)
    • getIndex

      private int getIndex(boolean pIsIngredientPath, int pStackingIndex, int pPathIndex)
    • visit

      private void visit(boolean pIsIngredientPath, int pPathIndex)
    • hasVisited

      private boolean hasVisited(boolean pIsIngredientPath, int pPathIndex)
    • getVisitedIndex

      private int getVisitedIndex(boolean pIsIngredientPath, int pPathIndex)
    • tryPickAll

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

      private int getMinIngredientCount()