Package net.minecraft.inventory
Interface RecipeInputInventory
- All Superinterfaces:
Clearable,Inventory,RecipeInputProvider
- All Known Implementing Classes:
class_8887,CraftingInventory
Represents an inventory that is an input for a recipe, such as
crafting table inputs.
- Mappings:
Namespace Name official cguintermediary net/minecraft/class_8566named net/minecraft/inventory/RecipeInputInventory
-
Field Summary
Fields inherited from interface net.minecraft.inventory.Inventory
field_42619, MAX_COUNT_PER_STACK -
Method Summary
Modifier and TypeMethodDescriptionintReturns 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, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, onClose, onOpen, removeStack, removeStack, setStack, sizeMethods 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 official ax_Lcgu;ax_()Iintermediary method_17398Lnet/minecraft/class_8566;method_17398()Inamed getWidthLnet/minecraft/inventory/RecipeInputInventory;getWidth()I
-
getHeight
int getHeight()Returns the height of the recipe grid.- Returns:
- the height of the recipe grid
- Mappings:
Namespace Name Mixin selector official ay_Lcgu;ay_()Iintermediary method_17397Lnet/minecraft/class_8566;method_17397()Inamed getHeightLnet/minecraft/inventory/RecipeInputInventory;getHeight()I
-
getInputStacks
Returns the stacks held by the inventory.- Returns:
- the stacks held by the inventory
- Mappings:
Namespace Name Mixin selector official hLcgu;h()Ljava/util/List;intermediary method_51305Lnet/minecraft/class_8566;method_51305()Ljava/util/List;named getInputStacksLnet/minecraft/inventory/RecipeInputInventory;getInputStacks()Ljava/util/List;
-