Package net.minecraft.world.inventory
Class TransientCraftingContainer
java.lang.Object
net.minecraft.world.inventory.TransientCraftingContainer
- All Implemented Interfaces:
- Clearable,- Container,- CraftingContainer,- StackedContentsCompatible
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate final NonNullList<ItemStack>private final AbstractContainerMenuprivate final intFields inherited from interface net.minecraft.world.ContainerDEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
- 
Constructor SummaryConstructorsConstructorDescriptionTransientCraftingContainer(AbstractContainerMenu p_287684_, int p_287629_, int p_287593_) TransientCraftingContainer(AbstractContainerMenu p_287708_, int p_287591_, int p_287609_, NonNullList<ItemStack> p_287695_) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidfillStackedContents(StackedContents p_287653_) intintgetItem(int p_287712_) getItems()intgetWidth()booleanisEmpty()removeItem(int p_287682_, int p_287576_) removeItemNoUpdate(int p_287637_) voidvoidbooleanstillValid(Player p_287774_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.ContainercanPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
- 
Field Details- 
items
- 
widthprivate final int width
- 
heightprivate final int height
 
- 
- 
Constructor Details- 
TransientCraftingContainer
- 
TransientCraftingContainerpublic TransientCraftingContainer(AbstractContainerMenu p_287708_, int p_287591_, int p_287609_, NonNullList<ItemStack> p_287695_) 
 
- 
- 
Method Details- 
getContainerSizepublic int getContainerSize()- Specified by:
- getContainerSizein interface- Container
 
- 
isEmptypublic boolean isEmpty()
- 
getItem
- 
removeItemNoUpdate- Specified by:
- removeItemNoUpdatein interface- Container
 
- 
removeItem- Specified by:
- removeItemin interface- Container
 
- 
setItem
- 
setChangedpublic void setChanged()- Specified by:
- setChangedin interface- Container
 
- 
stillValid- Specified by:
- stillValidin interface- Container
 
- 
clearContentpublic void clearContent()- Specified by:
- clearContentin interface- Clearable
 
- 
getHeightpublic int getHeight()- Specified by:
- getHeightin interface- CraftingContainer
 
- 
getWidthpublic int getWidth()- Specified by:
- getWidthin interface- CraftingContainer
 
- 
getItems- Specified by:
- getItemsin interface- CraftingContainer
 
- 
fillStackedContents- Specified by:
- fillStackedContentsin interface- StackedContentsCompatible
 
 
-