public class RecipeItemHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
RecipeItemHelper.RecipePicker |
Modifier and Type | Field and Description |
---|---|
it.unimi.dsi.fastutil.ints.Int2IntMap |
itemToCount |
Constructor and Description |
---|
RecipeItemHelper() |
Modifier and Type | Method and Description |
---|---|
void |
accountStack(ItemStack stack) |
void |
accountStack(ItemStack stack,
int forceCount) |
boolean |
canCraft(IRecipe recipe,
it.unimi.dsi.fastutil.ints.IntList p_194116_2_) |
boolean |
canCraft(IRecipe recipe,
it.unimi.dsi.fastutil.ints.IntList p_194118_2_,
int p_194118_3_) |
void |
clear() |
boolean |
containsItem(int p_194120_1_) |
int |
getBiggestCraftableStack(IRecipe recipe,
int p_194121_2_,
it.unimi.dsi.fastutil.ints.IntList p_194121_3_) |
int |
getBiggestCraftableStack(IRecipe recipe,
it.unimi.dsi.fastutil.ints.IntList p_194114_2_) |
private void |
increment(int p_194117_1_,
int amount) |
static int |
pack(ItemStack stack) |
int |
tryTake(int p_194122_1_,
int maximum) |
static ItemStack |
unpack(int p_194115_0_) |
public void accountStack(ItemStack stack)
public void accountStack(ItemStack stack, int forceCount)
public static int pack(ItemStack stack)
public boolean containsItem(int p_194120_1_)
public int tryTake(int p_194122_1_, int maximum)
private void increment(int p_194117_1_, int amount)
public boolean canCraft(IRecipe recipe, @Nullable it.unimi.dsi.fastutil.ints.IntList p_194116_2_)
public boolean canCraft(IRecipe recipe, @Nullable it.unimi.dsi.fastutil.ints.IntList p_194118_2_, int p_194118_3_)
public int getBiggestCraftableStack(IRecipe recipe, @Nullable it.unimi.dsi.fastutil.ints.IntList p_194114_2_)
public int getBiggestCraftableStack(IRecipe recipe, int p_194121_2_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_194121_3_)
public static ItemStack unpack(int p_194115_0_)
public void clear()