Package net.minecraft.world.inventory
Class TransientCraftingContainer
java.lang.Object
net.minecraft.world.inventory.TransientCraftingContainer
- All Implemented Interfaces:
Clearable
,Container
,CraftingContainer
,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
DEFAULT_DISTANCE_BUFFER
-
Constructor Summary
ConstructorDescriptionTransientCraftingContainer
(AbstractContainerMenu p_287684_, int p_287629_, int p_287593_) TransientCraftingContainer
(AbstractContainerMenu p_287708_, int p_287591_, int p_287609_, NonNullList<ItemStack> p_287695_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
fillStackedContents
(StackedContents p_287653_) int
int
getItem
(int p_287712_) getItems()
int
getWidth()
boolean
isEmpty()
removeItem
(int p_287682_, int p_287576_) removeItemNoUpdate
(int p_287637_) void
void
boolean
stillValid
(Player p_287774_) 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, canTakeItem, countItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
-
Field Details
-
items
-
width
private final int width -
height
private final int height
-
-
Constructor Details
-
TransientCraftingContainer
-
TransientCraftingContainer
public TransientCraftingContainer(AbstractContainerMenu p_287708_, int p_287591_, int p_287609_, NonNullList<ItemStack> p_287695_)
-
-
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()- Specified by:
getHeight
in interfaceCraftingContainer
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceCraftingContainer
-
getItems
- Specified by:
getItems
in interfaceCraftingContainer
-
fillStackedContents
- Specified by:
fillStackedContents
in interfaceStackedContentsCompatible
-