Package net.minecraft.inventory
Class CraftingInventory
java.lang.Object
net.minecraft.inventory.CraftingInventory
- All Implemented Interfaces:
IClearable
,IInventory
,IRecipeHelperPopulator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
fillStackedContents
(RecipeItemHelper p_194018_1_) int
int
getItem
(int p_70301_1_) int
getWidth()
boolean
isEmpty()
removeItem
(int p_70298_1_, int p_70298_2_) removeItemNoUpdate
(int p_70304_1_) void
void
boolean
stillValid
(PlayerEntity p_70300_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getContainerSize
in interfaceIInventory
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceIInventory
-
getItem
- Specified by:
getItem
in interfaceIInventory
-
removeItemNoUpdate
- Specified by:
removeItemNoUpdate
in interfaceIInventory
-
removeItem
- Specified by:
removeItem
in interfaceIInventory
-
setItem
- Specified by:
setItem
in interfaceIInventory
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfaceIInventory
-
stillValid
- Specified by:
stillValid
in interfaceIInventory
-
clearContent
public void clearContent()- Specified by:
clearContent
in interfaceIClearable
-
getHeight
public int getHeight() -
getWidth
public int getWidth() -
fillStackedContents
- Specified by:
fillStackedContents
in interfaceIRecipeHelperPopulator
-