Class StackedContents.RecipePicker
java.lang.Object
net.minecraft.world.entity.player.StackedContents.RecipePicker
- Enclosing class:
StackedContents
-
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 Recipe<?>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
dfs
(int p_36511_) private int
getIndex
(boolean p_36547_, int p_36548_, int p_36549_) private int
private int
getSatisfiedIndex
(int p_36545_) private int[]
private int
getVisitedIndex
(boolean p_36538_, int p_36539_) private boolean
hasConnection
(boolean p_36519_, int p_36520_, int p_36521_) private boolean
hasResidual
(boolean p_36532_, int p_36533_, int p_36534_) private boolean
hasVisited
(boolean p_36529_, int p_36530_) private boolean
isSatisfied
(int p_36524_) private void
setSatisfied
(int p_36536_) private void
toggleResidual
(boolean p_36541_, int p_36542_, int p_36543_) boolean
tryPick
(int p_36513_, it.unimi.dsi.fastutil.ints.IntList p_36514_) int
tryPickAll
(int p_36526_, it.unimi.dsi.fastutil.ints.IntList p_36527_) private void
visit
(boolean p_36516_, int p_36517_)
-
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_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()
-