public class RecipeItemHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
it.unimi.dsi.fastutil.ints.Int2IntMap |
itemToCount |
Constructor and Description |
---|
RecipeItemHelper() |
Modifier and Type | Method and Description |
---|---|
void |
accountPlainStack(ItemStack p_195932_1_) |
void |
accountStack(ItemStack stack) |
boolean |
canCraft(IRecipe<?> recipe,
it.unimi.dsi.fastutil.ints.IntList packedItemList) |
boolean |
canCraft(IRecipe<?> recipe,
it.unimi.dsi.fastutil.ints.IntList packedItemList,
int maxAmount) |
void |
clear() |
void |
func_221264_a(ItemStack p_221264_1_,
int p_221264_2_) |
int |
getBiggestCraftableStack(IRecipe<?> recipe,
int maxAmount,
it.unimi.dsi.fastutil.ints.IntList packedItemList) |
int |
getBiggestCraftableStack(IRecipe<?> recipe,
it.unimi.dsi.fastutil.ints.IntList packedItemList) |
static int |
pack(ItemStack stack) |
static ItemStack |
unpack(int packedItem) |
public void accountPlainStack(ItemStack p_195932_1_)
public void accountStack(ItemStack stack)
public void func_221264_a(ItemStack p_221264_1_, int p_221264_2_)
public static int pack(ItemStack stack)
public boolean canCraft(IRecipe<?> recipe, @Nullable it.unimi.dsi.fastutil.ints.IntList packedItemList)
public boolean canCraft(IRecipe<?> recipe, @Nullable it.unimi.dsi.fastutil.ints.IntList packedItemList, int maxAmount)
public int getBiggestCraftableStack(IRecipe<?> recipe, @Nullable it.unimi.dsi.fastutil.ints.IntList packedItemList)
public int getBiggestCraftableStack(IRecipe<?> recipe, int maxAmount, @Nullable it.unimi.dsi.fastutil.ints.IntList packedItemList)
public static ItemStack unpack(int packedItem)
public void clear()