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
FieldsModifier and TypeFieldDescriptionprivate boolean
private final LevelAccessor
private final BlockPos
private final BlockState
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
-
Constructor Summary
ConstructorsConstructorDescriptionOutputContainer
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, ItemStack pStack) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlaceItemThroughFace
(int pIndex, ItemStack pItemStack, Direction pDirection) Returnstrue
if automation can insert the given item in the given slot from the given side.boolean
canTakeItemThroughFace
(int pIndex, ItemStack pStack, Direction pDirection) Returnstrue
if automation can extract the given item in the given slot from the given side.int
int[]
getSlotsForFace
(Direction pSide) void
Methods inherited from class net.minecraft.world.SimpleContainer
addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, getItems, 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, canTakeItem, countItem, getContainerSize, getItem, getMaxStackSize, hasAnyMatching, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setItem, startOpen, stillValid, stopOpen
-
Field Details
-
state
-
level
-
pos
-
changed
private boolean changed
-
-
Constructor Details
-
OutputContainer
-
-
Method Details
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSize
in interfaceContainer
-
getSlotsForFace
- Specified by:
getSlotsForFace
in interfaceWorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int pIndex, ItemStack pItemStack, @Nullable Direction pDirection) Returnstrue
if automation can insert the given item in the given slot from the given side.- Specified by:
canPlaceItemThroughFace
in interfaceWorldlyContainer
-
canTakeItemThroughFace
Returnstrue
if automation can extract the given item in the given slot from the given side.- Specified by:
canTakeItemThroughFace
in interfaceWorldlyContainer
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfaceContainer
- Overrides:
setChanged
in classSimpleContainer
-