Package net.minecraft.world.inventory
Class CraftingContainer
java.lang.Object
net.minecraft.world.inventory.CraftingContainer
- All Implemented Interfaces:
Clearable,Container,StackedContentsCompatible
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final NonNullList<ItemStack>private final AbstractContainerMenuprivate final intFields inherited from interface net.minecraft.world.Container
LARGE_MAX_STACK_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCraftingContainer(AbstractContainerMenu p_39325_, int p_39326_, int p_39327_) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfillStackedContents(StackedContents p_39342_) intintgetItem(int p_39332_) intgetWidth()booleanisEmpty()removeItem(int p_39334_, int p_39335_) removeItemNoUpdate(int p_39344_) voidvoidbooleanstillValid(Player p_39340_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canPlaceItem, countItem, getMaxStackSize, 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:
getContainerSizein interfaceContainer
-
isEmpty
public boolean isEmpty() -
getItem
-
removeItemNoUpdate
- Specified by:
removeItemNoUpdatein interfaceContainer
-
removeItem
- Specified by:
removeItemin interfaceContainer
-
setItem
-
setChanged
public void setChanged()- Specified by:
setChangedin interfaceContainer
-
stillValid
- Specified by:
stillValidin interfaceContainer
-
clearContent
public void clearContent()- Specified by:
clearContentin interfaceClearable
-
getHeight
public int getHeight() -
getWidth
public int getWidth() -
fillStackedContents
- Specified by:
fillStackedContentsin interfaceStackedContentsCompatible
-