Package net.minecraft.inventory
Class CraftingInventory
java.lang.Object
net.minecraft.inventory.CraftingInventory
- All Implemented Interfaces:
IClearable,IInventory,IRecipeHelperPopulator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfillStackedContents(RecipeItemHelper p_194018_1_) intintgetItem(int p_70301_1_) intgetWidth()booleanisEmpty()removeItem(int p_70298_1_, int p_70298_2_) removeItemNoUpdate(int p_70304_1_) voidvoidbooleanstillValid(PlayerEntity p_70300_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.inventory.IInventory
canPlaceItem, countItem, getMaxStackSize, hasAnyOf, startOpen, stopOpen
-
Field Details
-
items
-
width
private final int width -
height
private final int height
-
-
Constructor Details
-
CraftingInventory
-
-
Method Details
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSizein interfaceIInventory
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceIInventory
-
getItem
- Specified by:
getItemin interfaceIInventory
-
removeItemNoUpdate
- Specified by:
removeItemNoUpdatein interfaceIInventory
-
removeItem
- Specified by:
removeItemin interfaceIInventory
-
setItem
- Specified by:
setItemin interfaceIInventory
-
setChanged
public void setChanged()- Specified by:
setChangedin interfaceIInventory
-
stillValid
- Specified by:
stillValidin interfaceIInventory
-
clearContent
public void clearContent()- Specified by:
clearContentin interfaceIClearable
-
getHeight
public int getHeight() -
getWidth
public int getWidth() -
fillStackedContents
- Specified by:
fillStackedContentsin interfaceIRecipeHelperPopulator
-