Package net.minecraft.world.level.block
Class ComposterBlock.InputContainer
java.lang.Object
net.minecraft.world.SimpleContainer
net.minecraft.world.level.block.ComposterBlock.InputContainer
- All Implemented Interfaces:
Clearable
,Container
,StackedContentsCompatible
,WorldlyContainer
- Enclosing class:
- ComposterBlock
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final LevelAccessor
private final BlockPos
private final BlockState
Fields inherited from interface net.minecraft.world.Container
LARGE_MAX_STACK_SIZE
-
Constructor Summary
ConstructorDescriptionInputContainer
(BlockState p_52022_, LevelAccessor p_52023_, BlockPos p_52024_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlaceItemThroughFace
(int p_52028_, ItemStack p_52029_, Direction p_52030_) boolean
canTakeItemThroughFace
(int p_52034_, ItemStack p_52035_, Direction p_52036_) int
int[]
getSlotsForFace
(Direction p_52032_) 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, hasAnyMatching, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setItem, startOpen, stillValid, stopOpen
-
Field Details
-
state
-
level
-
pos
-
changed
private boolean changed
-
-
Constructor Details
-
InputContainer
-
-
Method Details
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSize
in interfaceContainer
-
getSlotsForFace
- Specified by:
getSlotsForFace
in interfaceWorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int p_52028_, ItemStack p_52029_, @Nullable Direction p_52030_) - Specified by:
canPlaceItemThroughFace
in interfaceWorldlyContainer
-
canTakeItemThroughFace
- Specified by:
canTakeItemThroughFace
in interfaceWorldlyContainer
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfaceContainer
- Overrides:
setChanged
in classSimpleContainer
-