Package net.minecraft.world.inventory
Class CraftingContainer
java.lang.Object
net.minecraft.world.inventory.CraftingContainer
- All Implemented Interfaces:
Clearable
,Container
,StackedContentsCompatible
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final NonNullList<ItemStack>
private final AbstractContainerMenu
private final int
Fields inherited from interface net.minecraft.world.Container
LARGE_MAX_STACK_SIZE
-
Constructor Summary
ConstructorDescriptionCraftingContainer
(AbstractContainerMenu p_39325_, int p_39326_, int p_39327_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
fillStackedContents
(StackedContents p_39342_) int
int
getItem
(int p_39332_) int
getWidth()
boolean
isEmpty()
removeItem
(int p_39334_, int p_39335_) removeItemNoUpdate
(int p_39344_) void
void
boolean
stillValid
(Player p_39340_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.Container
canPlaceItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
-
Field Details
-
items
-
width
private final int width -
height
private final int height
-
-
Constructor Details
-
CraftingContainer
-
-
Method Details
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSize
in interfaceContainer
-
isEmpty
public boolean isEmpty() -
getItem
-
removeItemNoUpdate
- Specified by:
removeItemNoUpdate
in interfaceContainer
-
removeItem
- Specified by:
removeItem
in interfaceContainer
-
setItem
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfaceContainer
-
stillValid
- Specified by:
stillValid
in interfaceContainer
-
clearContent
public void clearContent()- Specified by:
clearContent
in interfaceClearable
-
getHeight
public int getHeight() -
getWidth
public int getWidth() -
fillStackedContents
- Specified by:
fillStackedContents
in interfaceStackedContentsCompatible
-