Package net.minecraft.world.ticks
Interface ContainerSingleItem
- All Known Implementing Classes:
DecoratedPotBlockEntity
,JukeboxBlockEntity
-
Field Summary
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
default int
default ItemStack
getItem
(int p_309780_) default boolean
isEmpty()
default ItemStack
removeItem
(int p_313221_, int p_309913_) default ItemStack
removeItemNoUpdate
(int p_273409_) default ItemStack
default void
void
setTheItem
(ItemStack p_310917_) splitTheItem
(int p_312245_) default boolean
stillValid
(Player p_312825_) Methods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stopOpen
-
Method Details
-
getTheItem
ItemStack getTheItem() -
splitTheItem
-
setTheItem
-
getContainerBlockEntity
BlockEntity getContainerBlockEntity() -
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
-
stillValid
- Specified by:
stillValid
in interfaceContainer
-