Package net.minecraft.inventory
Interface RecipeInputInventory
- All Superinterfaces:
Clearable,Inventory,Iterable<ItemStack>,RecipeInputProvider
- All Known Implementing Classes:
CrafterBlockEntity,CraftingInventory
Represents an inventory that is an input for a recipe, such as
crafting table inputs.
- Mappings:
Namespace Name named net/minecraft/inventory/RecipeInputInventoryintermediary net/minecraft/class_8566official cwt
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.inventory.Inventory
Inventory.Iterator -
Field Summary
Fields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGE -
Method Summary
Modifier and TypeMethodDescriptiondefault CraftingRecipeInput.Positioneddefault CraftingRecipeInputintReturns the height of the recipe grid.Returns the stacks held by the inventory.intgetWidth()Returns the width of the recipe grid.Methods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, getStack, isEmpty, isValid, iterator, markDirty, onClose, onOpen, removeStack, removeStack, setStack, sizeMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.minecraft.recipe.RecipeInputProvider
provideRecipeInputs
-
Method Details
-
getWidth
int getWidth()Returns the width of the recipe grid.- Returns:
- the width of the recipe grid
- Mappings:
Namespace Name Mixin selector named getWidthLnet/minecraft/inventory/RecipeInputInventory;getWidth()Iintermediary method_17398Lnet/minecraft/class_8566;method_17398()Iofficial av_Lcwt;av_()I
-
getHeight
int getHeight()Returns the height of the recipe grid.- Returns:
- the height of the recipe grid
- Mappings:
Namespace Name Mixin selector named getHeightLnet/minecraft/inventory/RecipeInputInventory;getHeight()Iintermediary method_17397Lnet/minecraft/class_8566;method_17397()Iofficial gLcwt;g()I
-
getHeldStacks
Returns the stacks held by the inventory.- Returns:
- the stacks held by the inventory
- Mappings:
Namespace Name Mixin selector named getHeldStacksLnet/minecraft/inventory/RecipeInputInventory;getHeldStacks()Ljava/util/List;intermediary method_51305Lnet/minecraft/class_8566;method_51305()Ljava/util/List;official hLcwt;h()Ljava/util/List;
-
createRecipeInput
- Mappings:
Namespace Name Mixin selector named createRecipeInputLnet/minecraft/inventory/RecipeInputInventory;createRecipeInput()Lnet/minecraft/recipe/input/CraftingRecipeInput;intermediary method_59961Lnet/minecraft/class_8566;method_59961()Lnet/minecraft/class_9694;official ay_Lcwt;ay_()Ldep;
-
createPositionedRecipeInput
- Mappings:
Namespace Name Mixin selector named createPositionedRecipeInputLnet/minecraft/inventory/RecipeInputInventory;createPositionedRecipeInput()Lnet/minecraft/recipe/input/CraftingRecipeInput$Positioned;intermediary method_60501Lnet/minecraft/class_8566;method_60501()Lnet/minecraft/class_9694$class_9765;official az_Lcwt;az_()Ldep$a;
-