public class RecipeItemHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Int2IntMap |
itemToCount
Map from
pack(net.minecraft.item.ItemStack) packed ids to counts |
Constructor and Description |
---|
RecipeItemHelper() |
Modifier and Type | Method and Description |
---|---|
void |
accountStack(ItemStack stack) |
void |
accountStack(ItemStack stack,
int forceCount) |
boolean |
canCraft(IRecipe recipe,
IntList p_194116_2_) |
boolean |
canCraft(IRecipe recipe,
IntList p_194118_2_,
int p_194118_3_) |
void |
clear() |
boolean |
containsItem(int p_194120_1_) |
int |
getBiggestCraftableStack(IRecipe recipe,
int p_194121_2_,
IntList p_194121_3_) |
int |
getBiggestCraftableStack(IRecipe recipe,
IntList p_194114_2_) |
static int |
pack(ItemStack stack) |
int |
tryTake(int p_194122_1_,
int maximum) |
static ItemStack |
unpack(int p_194115_0_) |
public final Int2IntMap itemToCount
pack(net.minecraft.item.ItemStack)
packed ids to countspublic 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)
public boolean canCraft(IRecipe recipe, IntList p_194116_2_)
public boolean canCraft(IRecipe recipe, IntList p_194118_2_, int p_194118_3_)
public int getBiggestCraftableStack(IRecipe recipe, IntList p_194114_2_)
public int getBiggestCraftableStack(IRecipe recipe, int p_194121_2_, IntList p_194121_3_)
public static ItemStack unpack(int p_194115_0_)
public void clear()