Class ComposterBlock.OutputContainer
java.lang.Object
net.minecraft.world.SimpleContainer
net.minecraft.world.level.block.ComposterBlock.OutputContainer
- All Implemented Interfaces:
Iterable<ItemStack>, Clearable, Container, SlotProvider, StackedContentsCompatible, WorldlyContainer, ContainerExtension
- Enclosing class:
ComposterBlock
private static class ComposterBlock.OutputContainer
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
ConstructorsConstructorDescriptionOutputContainer(BlockState state, LevelAccessor level, BlockPos pos, ItemStack contents) -
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.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
-
OutputContainer
-
-
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) Description copied from interface:WorldlyContainerReturnstrueif automation can insert the given item in the given slot from the given side.- Specified by:
canPlaceItemThroughFacein interfaceWorldlyContainer
-
canTakeItemThroughFace
Description copied from interface:WorldlyContainerReturnstrueif automation can extract the given item in the given slot from the given side.- Specified by:
canTakeItemThroughFacein interfaceWorldlyContainer
-
setChanged
public void setChanged()- Specified by:
setChangedin interfaceContainer- Overrides:
setChangedin classSimpleContainer
-