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
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final LevelAccessorprivate final BlockPosprivate final BlockStateFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionInputContainer(BlockState p_52022_, LevelAccessor p_52023_, BlockPos p_52024_) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceItemThroughFace(int p_52028_, ItemStack p_52029_, Direction p_52030_) booleancanTakeItemThroughFace(int p_52034_, ItemStack p_52035_, Direction p_52036_) intint[]getSlotsForFace(Direction p_52032_) voidMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.Clearable
clearContentMethods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, 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:
getMaxStackSizein interfaceContainer
-
getSlotsForFace
- Specified by:
getSlotsForFacein interfaceWorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int p_52028_, ItemStack p_52029_, @Nullable Direction p_52030_) - Specified by:
canPlaceItemThroughFacein interfaceWorldlyContainer
-
canTakeItemThroughFace
- Specified by:
canTakeItemThroughFacein interfaceWorldlyContainer
-
setChanged
public void setChanged()- Specified by:
setChangedin interfaceContainer- Overrides:
setChangedin classSimpleContainer
-