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 |
accountPlainStack(ItemStack stack) |
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() |
private boolean |
containsItem(int packedItem) |
void |
func_221264_a(ItemStack stack,
int minCount) |
int |
getBiggestCraftableStack(IRecipe<?> recipe,
int maxAmount,
it.unimi.dsi.fastutil.ints.IntList packedItemList) |
int |
getBiggestCraftableStack(IRecipe<?> recipe,
it.unimi.dsi.fastutil.ints.IntList packedItemList) |
private void |
increment(int packedItem,
int amount) |
static int |
pack(ItemStack stack) |
private int |
tryTake(int packedItem,
int maximum) |
static ItemStack |
unpack(int packedItem) |
public void accountPlainStack(ItemStack stack)
public void accountStack(ItemStack stack)
public void func_221264_a(ItemStack stack, int minCount)
public static int pack(ItemStack stack)
private boolean containsItem(int packedItem)
private int tryTake(int packedItem, int maximum)
private void increment(int packedItem, int amount)
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()