Package net.minecraft.world.level.block
Class ComposterBlock.OutputContainer
java.lang.Object
net.minecraft.world.SimpleContainer
net.minecraft.world.level.block.ComposterBlock.OutputContainer
- All Implemented Interfaces:
Clearable
,Container
,StackedContentsCompatible
,WorldlyContainer
- Enclosing class:
- ComposterBlock
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private LevelAccessor
private BlockPos
private BlockState
Fields inherited from interface net.minecraft.world.Container
LARGE_MAX_STACK_SIZE
-
Constructor Summary
ConstructorDescriptionOutputContainer(BlockState p_52042_, LevelAccessor p_52043_, BlockPos p_52044_, ItemStack p_52045_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlaceItemThroughFace(int p_52049_, ItemStack p_52050_, Direction p_52051_)
boolean
canTakeItemThroughFace(int p_52055_, ItemStack p_52056_, Direction p_52057_)
int
int[]
getSlotsForFace(Direction p_52053_)
void
Methods inherited from class net.minecraft.world.SimpleContainer
addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, removeListener, setItem, stillValid, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.Clearable
clearContent
Methods inherited from interface net.minecraft.world.Container
canPlaceItem, countItem, getContainerSize, getItem, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setItem, startOpen, stillValid, stopOpen
-
Field Details
-
state
-
level
-
pos
-
changed
private boolean changed
-
-
Constructor Details
-
OutputContainer
public OutputContainer(BlockState p_52042_, LevelAccessor p_52043_, BlockPos p_52044_, ItemStack p_52045_)
-
-
Method Details
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSize
in interfaceContainer
-
getSlotsForFace
- Specified by:
getSlotsForFace
in interfaceWorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int p_52049_, ItemStack p_52050_, @Nullable Direction p_52051_)- Specified by:
canPlaceItemThroughFace
in interfaceWorldlyContainer
-
canTakeItemThroughFace
- Specified by:
canTakeItemThroughFace
in interfaceWorldlyContainer
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfaceContainer
- Overrides:
setChanged
in classSimpleContainer
-