Interface ContainerSingleItem
- All Superinterfaces:
Clearable, Container, ContainerExtension, Iterable<ItemStack>, SlotProvider
- All Known Subinterfaces:
ContainerSingleItem.BlockContainerSingleItem
- All Known Implementing Classes:
DecoratedPotBlockEntity, JukeboxBlockEntity
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceNested classes/interfaces inherited from interface Container
Container.ContainerIterator -
Field Summary
Fields inherited from interface Container
DEFAULT_DISTANCE_BUFFER -
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault intdefault ItemStackgetItem(int slot) default booleanisEmpty()default ItemStackremoveItem(int slot, int count) default ItemStackremoveItemNoUpdate(int slot) default ItemStackdefault voidvoidsetTheItem(ItemStack itemStack) default ItemStacksplitTheItem(int count) Methods inherited from interface Container
canPlaceItem, canTakeItem, countItem, getEntitiesWithContainerOpen, getMaxStackSize, getMaxStackSize, getSlot, hasAnyMatching, hasAnyOf, iterator, setChanged, startOpen, stillValid, stopOpenMethods inherited from interface ContainerExtension
onTransfer, setItemMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface SlotProvider
getSlotsFromRange
-
Method Details
-
getTheItem
ItemStack getTheItem() -
splitTheItem
-
setTheItem
-
removeTheItem
-
getContainerSize
default int getContainerSize()- Specified by:
getContainerSizein interfaceContainer
-
isEmpty
-
clearContent
default void clearContent()- Specified by:
clearContentin interfaceClearable
-
removeItemNoUpdate
- Specified by:
removeItemNoUpdatein interfaceContainer
-
getItem
-
removeItem
- Specified by:
removeItemin interfaceContainer
-
setItem
-