Package net.minecraft.item.crafting
Class RecipeItemHelper.RecipePicker
java.lang.Object
net.minecraft.item.crafting.RecipeItemHelper.RecipePicker
- Enclosing class:
- RecipeItemHelper
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BitSet
private final int
private final List<Ingredient>
private final int
private final int[]
private final it.unimi.dsi.fastutil.ints.IntList
private final IRecipe<?>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
dfs
(int p_194098_1_) private int
getIndex
(boolean p_194095_1_, int p_194095_2_, int p_194095_3_) private int
private int
getSatisfiedIndex
(int p_194094_1_) private int[]
private int
getVisitedIndex
(boolean p_194099_1_, int p_194099_2_) private boolean
hasConnection
(boolean p_194093_1_, int p_194093_2_, int p_194093_3_) private boolean
hasResidual
(boolean p_194100_1_, int p_194100_2_, int p_194100_3_) private boolean
hasVisited
(boolean p_194101_1_, int p_194101_2_) private boolean
isSatisfied
(int p_194091_1_) private void
setSatisfied
(int p_194096_1_) private void
toggleResidual
(boolean p_194089_1_, int p_194089_2_, int p_194089_3_) boolean
tryPick
(int p_194092_1_, it.unimi.dsi.fastutil.ints.IntList p_194092_2_) int
tryPickAll
(int p_194102_1_, it.unimi.dsi.fastutil.ints.IntList p_194102_2_) private void
visit
(boolean p_194088_1_, int p_194088_2_)
-
Field Details
-
recipe
-
ingredients
-
ingredientCount
private final int ingredientCount -
items
private final int[] items -
itemCount
private final int itemCount -
data
-
path
private final it.unimi.dsi.fastutil.ints.IntList path
-
-
Constructor Details
-
RecipePicker
-
-
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()
-