Class ComposterBlock.InputContainer
java.lang.Object
net.minecraft.world.SimpleContainer
net.minecraft.world.level.block.ComposterBlock.InputContainer
- All Implemented Interfaces:
Iterable<ItemStack>, Clearable, Container, SlotProvider, StackedContentsCompatible, WorldlyContainer, ContainerExtension
- Enclosing class:
ComposterBlock
private static class ComposterBlock.InputContainer
extends SimpleContainer
implements WorldlyContainer
-
Nested Class Summary
Nested classes/interfaces inherited from interface Container
Container.ContainerIterator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final LevelAccessorprivate final BlockPosprivate final BlockStateFields inherited from interface Container
DEFAULT_DISTANCE_BUFFER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceItemThroughFace(int slot, ItemStack itemStack, @Nullable Direction direction) booleancanTakeItemThroughFace(int slot, ItemStack itemStack, Direction direction) intint[]getSlotsForFace(Direction direction) voidMethods inherited from class SimpleContainer
addItem, canAddItem, clearContent, fillStackedContents, fromItemList, getContainerSize, getItem, getItems, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, setItem, setItem, stillValid, storeAsItemList, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Clearable
clearContentMethods inherited from interface Container
canPlaceItem, canTakeItem, countItem, getContainerSize, getEntitiesWithContainerOpen, getItem, getMaxStackSize, getSlot, hasAnyMatching, hasAnyOf, isEmpty, iterator, removeItem, removeItemNoUpdate, setItem, startOpen, stillValid, stopOpenMethods inherited from interface ContainerExtension
onTransfer, setItemMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface SlotProvider
getSlotsFromRange
-
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 slot, ItemStack itemStack, @Nullable Direction direction) - Specified by:
canPlaceItemThroughFacein interfaceWorldlyContainer
-
canTakeItemThroughFace
- Specified by:
canTakeItemThroughFacein interfaceWorldlyContainer
-
setChanged
public void setChanged()- Specified by:
setChangedin interfaceContainer- Overrides:
setChangedin classSimpleContainer
-