Package net.minecraft.item.crafting
Class RecipeItemHelper
java.lang.Object
net.minecraft.item.crafting.RecipeItemHelper
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accountSimpleStack
(ItemStack p_195932_1_) void
accountStack
(ItemStack p_194112_1_) void
accountStack
(ItemStack p_221264_1_, int p_221264_2_) boolean
boolean
void
clear()
static ItemStack
fromStackingIndex
(int p_194115_0_) int
getBiggestCraftableStack
(IRecipe<?> p_194121_1_, int p_194121_2_, it.unimi.dsi.fastutil.ints.IntList p_194121_3_) int
getBiggestCraftableStack
(IRecipe<?> p_194114_1_, it.unimi.dsi.fastutil.ints.IntList p_194114_2_) static int
getStackingIndex
(ItemStack p_194113_0_) private boolean
has
(int p_194120_1_) private void
put
(int p_194117_1_, int p_194117_2_) private int
take
(int p_194122_1_, int p_194122_2_)
-
Field Details
-
contents
public final it.unimi.dsi.fastutil.ints.Int2IntMap contents
-
-
Constructor Details
-
RecipeItemHelper
public RecipeItemHelper()
-
-
Method Details
-
accountSimpleStack
-
accountStack
-
accountStack
-
getStackingIndex
-
has
private boolean has(int p_194120_1_) -
take
private int take(int p_194122_1_, int p_194122_2_) -
put
private void put(int p_194117_1_, int p_194117_2_) -
canCraft
public boolean canCraft(IRecipe<?> p_194116_1_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_194116_2_) -
canCraft
public boolean canCraft(IRecipe<?> p_194118_1_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_194118_2_, int p_194118_3_) -
getBiggestCraftableStack
public int getBiggestCraftableStack(IRecipe<?> p_194114_1_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_194114_2_) -
getBiggestCraftableStack
public int getBiggestCraftableStack(IRecipe<?> p_194121_1_, int p_194121_2_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_194121_3_) -
fromStackingIndex
-
clear
public void clear()
-