Class CraftingInput
java.lang.Object
net.minecraft.world.item.crafting.CraftingInput
- All Implemented Interfaces:
RecipeInput
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CraftingInput
private final int
private final int
private final StackedContents
private final int
-
Constructor Summary
ModifierConstructorDescriptionprivate
CraftingInput
(int p_346099_, int p_344783_, List<ItemStack> p_345241_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getItem
(int p_345667_) getItem
(int p_346237_, int p_345556_) int
hashCode()
int
height()
int
boolean
isEmpty()
items()
static CraftingInput
static CraftingInput.Positioned
ofPositioned
(int p_347479_, int p_347466_, List<ItemStack> p_347585_) int
size()
int
width()
-
Field Details
-
EMPTY
-
width
private final int width -
height
private final int height -
items
-
stackedContents
-
ingredientCount
private final int ingredientCount
-
-
Constructor Details
-
CraftingInput
-
-
Method Details
-
of
-
ofPositioned
public static CraftingInput.Positioned ofPositioned(int p_347479_, int p_347466_, List<ItemStack> p_347585_) -
getItem
- Specified by:
getItem
in interfaceRecipeInput
-
getItem
-
size
public int size()- Specified by:
size
in interfaceRecipeInput
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceRecipeInput
-
stackedContents
-
items
-
ingredientCount
public int ingredientCount() -
width
public int width() -
height
public int height() -
equals
-
hashCode
public int hashCode()
-