接口 ContainerSingleItem
- 所有已知实现类:
DecoratedPotBlockEntity
,JukeboxBlockEntity
-
嵌套类概要
嵌套类 -
字段概要
从接口继承的字段 net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
-
方法概要
修饰符和类型方法说明default 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_) default ItemStack
splitTheItem
(int p_312245_) 从接口继承的方法 net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stillValid, stopOpen
-
方法详细资料
-
getTheItem
ItemStack getTheItem() -
splitTheItem
-
setTheItem
-
removeTheItem
-
getContainerSize
default int getContainerSize()- 指定者:
getContainerSize
在接口中Container
-
isEmpty
default boolean isEmpty() -
clearContent
default void clearContent()- 指定者:
clearContent
在接口中Clearable
-
removeItemNoUpdate
- 指定者:
removeItemNoUpdate
在接口中Container
-
getItem
-
removeItem
- 指定者:
removeItem
在接口中Container
-
setItem
-