class RecipeItemHelper.RecipePicker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.BitSet |
data |
private int |
ingredientCount |
private java.util.List<Ingredient> |
ingredients |
private it.unimi.dsi.fastutil.ints.IntList |
path |
private int |
possessedIngredientStackCount |
private int[] |
possessedIngredientStacks |
private IRecipe<?> |
recipe |
Constructor and Description |
---|
RecipePicker(IRecipe<?> recipeIn) |
Modifier and Type | Method and Description |
---|---|
private boolean |
dfs(int amount) |
private int |
getIndex(boolean p_194095_1_,
int p_194095_2_,
int p_194095_3_) |
private int |
getMinIngredientCount() |
private int |
getSatisfiedIndex(int p_194094_1_) |
private int[] |
getUniqueAvailIngredientItems() |
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 maxAmount,
it.unimi.dsi.fastutil.ints.IntList listIn) |
int |
tryPickAll(int p_194102_1_,
it.unimi.dsi.fastutil.ints.IntList list) |
private void |
visit(boolean p_194088_1_,
int p_194088_2_) |
private final IRecipe<?> recipe
private final java.util.List<Ingredient> ingredients
private final int ingredientCount
private final int[] possessedIngredientStacks
private final int possessedIngredientStackCount
private final java.util.BitSet data
private final it.unimi.dsi.fastutil.ints.IntList path
public RecipePicker(IRecipe<?> recipeIn)
public boolean tryPick(int maxAmount, @Nullable it.unimi.dsi.fastutil.ints.IntList listIn)
private int[] getUniqueAvailIngredientItems()
private boolean dfs(int amount)
private boolean isSatisfied(int p_194091_1_)
private void setSatisfied(int p_194096_1_)
private int getSatisfiedIndex(int p_194094_1_)
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 void toggleResidual(boolean p_194089_1_, int p_194089_2_, int p_194089_3_)
private int getIndex(boolean p_194095_1_, int p_194095_2_, int p_194095_3_)
private void visit(boolean p_194088_1_, int p_194088_2_)
private boolean hasVisited(boolean p_194101_1_, int p_194101_2_)
private int getVisitedIndex(boolean p_194099_1_, int p_194099_2_)
public int tryPickAll(int p_194102_1_, @Nullable it.unimi.dsi.fastutil.ints.IntList list)
private int getMinIngredientCount()