Package net.minecraft.inventory
Class CraftingInventory
- java.lang.Object
-
- net.minecraft.inventory.CraftingInventory
-
- All Implemented Interfaces:
IClearable
,IInventory
,IRecipeHelperPopulator
public class CraftingInventory extends java.lang.Object implements IInventory, IRecipeHelperPopulator
-
-
Constructor Summary
Constructors Constructor Description CraftingInventory(Container p_i1807_1_, int p_i1807_2_, int p_i1807_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearContent()
void
fillStackedContents(RecipeItemHelper p_194018_1_)
int
getContainerSize()
int
getHeight()
ItemStack
getItem(int p_70301_1_)
int
getWidth()
boolean
isEmpty()
ItemStack
removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
removeItemNoUpdate(int p_70304_1_)
void
setChanged()
void
setItem(int p_70299_1_, ItemStack p_70299_2_)
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 Detail
-
items
private final NonNullList<ItemStack> items
-
width
private final int width
-
height
private final int height
-
menu
private final Container menu
-
-
Constructor Detail
-
CraftingInventory
public CraftingInventory(Container p_i1807_1_, int p_i1807_2_, int p_i1807_3_)
-
-
Method Detail
-
getContainerSize
public int getContainerSize()
- Specified by:
getContainerSize
in interfaceIInventory
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceIInventory
-
getItem
public ItemStack getItem(int p_70301_1_)
- Specified by:
getItem
in interfaceIInventory
-
removeItemNoUpdate
public ItemStack removeItemNoUpdate(int p_70304_1_)
- Specified by:
removeItemNoUpdate
in interfaceIInventory
-
removeItem
public ItemStack removeItem(int p_70298_1_, int p_70298_2_)
- Specified by:
removeItem
in interfaceIInventory
-
setItem
public void setItem(int p_70299_1_, ItemStack p_70299_2_)
- Specified by:
setItem
in interfaceIInventory
-
setChanged
public void setChanged()
- Specified by:
setChanged
in interfaceIInventory
-
stillValid
public boolean stillValid(PlayerEntity p_70300_1_)
- Specified by:
stillValid
in interfaceIInventory
-
clearContent
public void clearContent()
- Specified by:
clearContent
in interfaceIClearable
-
getHeight
public int getHeight()
-
getWidth
public int getWidth()
-
fillStackedContents
public void fillStackedContents(RecipeItemHelper p_194018_1_)
- Specified by:
fillStackedContents
in interfaceIRecipeHelperPopulator
-
-