public class RecipeFinder extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
RecipeFinder.Filter |
Modifier and Type | Field and Description |
---|---|
it.unimi.dsi.fastutil.ints.Int2IntMap |
idToAmountMap |
Constructor and Description |
---|
RecipeFinder() |
Modifier and Type | Method and Description |
---|---|
private void |
addItem(int id,
int amount) |
void |
addItem(ItemStack itemStack) |
void |
addNormalItem(ItemStack stack) |
void |
clear() |
private boolean |
contains(int int2) |
int |
countRecipeCrafts(Recipe<?> recipe,
int limit,
it.unimi.dsi.fastutil.ints.IntList outMatchingInputIds) |
int |
countRecipeCrafts(Recipe<?> recipe,
it.unimi.dsi.fastutil.ints.IntList outMatchingInputIds) |
boolean |
findRecipe(Recipe<?> recipe,
it.unimi.dsi.fastutil.ints.IntList outMatchingInputIds) |
boolean |
findRecipe(Recipe<?> recipe,
it.unimi.dsi.fastutil.ints.IntList outMatchingInputIds,
int amount) |
static int |
getItemId(ItemStack itemStack) |
static ItemStack |
getStackFromId(int int2) |
void |
method_20478(ItemStack itemStack,
int int2) |
private int |
take(int id,
int amount) |
public void addNormalItem(ItemStack stack)
public void addItem(ItemStack itemStack)
public void method_20478(ItemStack itemStack, int int2)
public static int getItemId(ItemStack itemStack)
private boolean contains(int int2)
private int take(int id, int amount)
private void addItem(int id, int amount)
public boolean findRecipe(Recipe<?> recipe, @Nullable it.unimi.dsi.fastutil.ints.IntList outMatchingInputIds)
public boolean findRecipe(Recipe<?> recipe, @Nullable it.unimi.dsi.fastutil.ints.IntList outMatchingInputIds, int amount)
public int countRecipeCrafts(Recipe<?> recipe, @Nullable it.unimi.dsi.fastutil.ints.IntList outMatchingInputIds)
public int countRecipeCrafts(Recipe<?> recipe, int limit, @Nullable it.unimi.dsi.fastutil.ints.IntList outMatchingInputIds)
public static ItemStack getStackFromId(int int2)
public void clear()