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_344026_, int p_345334_, List<ItemStack> p_343256_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getItem
(int p_342671_) getItem
(int p_343752_, int p_345443_) int
hashCode()
int
height()
int
boolean
isEmpty()
items()
static CraftingInput
static CraftingInput.Positioned
ofPositioned
(int p_345256_, int p_344157_, List<ItemStack> p_342879_) 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_345256_, int p_344157_, List<ItemStack> p_342879_) -
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()
-