Class ComposterBlock.EmptyContainer
java.lang.Object
net.minecraft.world.SimpleContainer
net.minecraft.world.level.block.ComposterBlock.EmptyContainer
- All Implemented Interfaces:
Iterable<ItemStack>, Clearable, Container, SlotProvider, StackedContentsCompatible, WorldlyContainer, ContainerExtension
- Enclosing class:
ComposterBlock
private static class ComposterBlock.EmptyContainer
extends SimpleContainer
implements WorldlyContainer
-
Nested Class Summary
Nested classes/interfaces inherited from interface Container
Container.ContainerIterator -
Field Summary
Fields inherited from interface Container
DEFAULT_DISTANCE_BUFFER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceItemThroughFace(int slot, ItemStack itemStack, @Nullable Direction direction) Returnstrueif automation can insert the given item in the given slot from the given side.booleancanTakeItemThroughFace(int slot, ItemStack itemStack, Direction direction) Returnstrueif automation can extract the given item in the given slot from the given side.int[]getSlotsForFace(Direction direction) Methods inherited from class SimpleContainer
addItem, canAddItem, clearContent, fillStackedContents, fromItemList, getContainerSize, getItem, getItems, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, setChanged, 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, getMaxStackSize, getSlot, hasAnyMatching, hasAnyOf, isEmpty, iterator, removeItem, removeItemNoUpdate, setChanged, setItem, startOpen, stillValid, stopOpenMethods inherited from interface ContainerExtension
onTransfer, setItemMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface SlotProvider
getSlotsFromRange
-
Constructor Details
-
EmptyContainer
public EmptyContainer()
-
-
Method Details
-
getSlotsForFace
- Specified by:
getSlotsForFacein interfaceWorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int slot, ItemStack itemStack, @Nullable Direction direction) Returnstrueif automation can insert the given item in the given slot from the given side.- Specified by:
canPlaceItemThroughFacein interfaceWorldlyContainer
-
canTakeItemThroughFace
Returnstrueif automation can extract the given item in the given slot from the given side.- Specified by:
canTakeItemThroughFacein interfaceWorldlyContainer
-