Package net.minecraft.world.ticks
Interface ContainerSingleItem
- All Known Subinterfaces:
ContainerSingleItem.BlockContainerSingleItem
- All Known Implementing Classes:
DecoratedPotBlockEntity
,JukeboxBlockEntity
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
-
Field Summary
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
default int
default ItemStack
getItem
(int p_304882_) default boolean
isEmpty()
default ItemStack
removeItem
(int p_304944_, int p_304791_) default ItemStack
removeItemNoUpdate
(int p_273409_) default ItemStack
default void
void
setTheItem
(ItemStack p_304718_) default ItemStack
splitTheItem
(int p_304641_) Methods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stillValid, stopOpen
-
Method Details
-
getTheItem
ItemStack getTheItem() -
splitTheItem
-
setTheItem
-
removeTheItem
-
getContainerSize
default int getContainerSize()- Specified by:
getContainerSize
in interfaceContainer
-
isEmpty
default boolean isEmpty() -
clearContent
default void clearContent()- Specified by:
clearContent
in interfaceClearable
-
removeItemNoUpdate
- Specified by:
removeItemNoUpdate
in interfaceContainer
-
getItem
-
removeItem
- Specified by:
removeItem
in interfaceContainer
-
setItem
-