Package net.minecraft.item.crafting
Class RecipeItemHelper
- java.lang.Object
-
- net.minecraft.item.crafting.RecipeItemHelper
-
public class RecipeItemHelper extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
RecipeItemHelper.RecipePicker
-
Field Summary
Fields Modifier and Type Field Description it.unimi.dsi.fastutil.ints.Int2IntMap
contents
-
Constructor Summary
Constructors Constructor Description RecipeItemHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accountSimpleStack(ItemStack p_195932_1_)
void
accountStack(ItemStack p_194112_1_)
void
accountStack(ItemStack p_221264_1_, int p_221264_2_)
boolean
canCraft(IRecipe<?> p_194116_1_, it.unimi.dsi.fastutil.ints.IntList p_194116_2_)
boolean
canCraft(IRecipe<?> p_194118_1_, it.unimi.dsi.fastutil.ints.IntList p_194118_2_, int p_194118_3_)
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_)
-
-
-
Method Detail
-
accountSimpleStack
public void accountSimpleStack(ItemStack p_195932_1_)
-
accountStack
public void accountStack(ItemStack p_194112_1_)
-
accountStack
public void accountStack(ItemStack p_221264_1_, int p_221264_2_)
-
getStackingIndex
public static int getStackingIndex(ItemStack p_194113_0_)
-
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
public static ItemStack fromStackingIndex(int p_194115_0_)
-
clear
public void clear()
-
-