接口 Container
- 所有超级接口:
Clearable
- 所有已知实现类:
AbstractFurnaceBlockEntity
,AbstractMinecartContainer
,BarrelBlockEntity
,BaseContainerBlockEntity
,BlastFurnaceBlockEntity
,BrewingStandBlockEntity
,ChestBlockEntity
,ChestBoat
,ChiseledBookShelfBlockEntity
,ComposterBlock.EmptyContainer
,ComposterBlock.InputContainer
,ComposterBlock.OutputContainer
,CompoundContainer
,DispenserBlockEntity
,DropperBlockEntity
,FurnaceBlockEntity
,HopperBlockEntity
,Inventory
,JukeboxBlockEntity
,MerchantContainer
,MinecartChest
,MinecartHopper
,PlayerEnderChestContainer
,RandomizableContainerBlockEntity
,RecipeWrapper
,ResultContainer
,ShulkerBoxBlockEntity
,SimpleContainer
,SmokerBlockEntity
,TransientCraftingContainer
,TrappedChestBlockEntity
-
字段概要
字段 -
方法概要
修饰符和类型方法说明default boolean
canPlaceItem
(int pIndex, ItemStack pStack) default boolean
canTakeItem
(Container pTarget, int pIndex, ItemStack pStack) default int
int
getItem
(int pSlot) default int
default boolean
hasAnyMatching
(Predicate<ItemStack> pPredicate) default boolean
boolean
isEmpty()
removeItem
(int pSlot, int pAmount) removeItemNoUpdate
(int pSlot) void
void
default void
boolean
stillValid
(Player pPlayer) static boolean
stillValidBlockEntity
(BlockEntity pBlockEntity, Player pPlayer) static boolean
stillValidBlockEntity
(BlockEntity pBlockEntity, Player pPlayer, int pMaxDistance) default void
从接口继承的方法 net.minecraft.world.Clearable
clearContent
-
字段详细资料
-
方法详细资料
-
getContainerSize
int getContainerSize() -
isEmpty
boolean isEmpty() -
getItem
-
removeItem
-
removeItemNoUpdate
-
setItem
-
getMaxStackSize
default int getMaxStackSize() -
setChanged
void setChanged() -
stillValid
-
startOpen
-
stopOpen
-
canPlaceItem
-
canTakeItem
-
countItem
-
hasAnyOf
-
hasAnyMatching
-
stillValidBlockEntity
-
stillValidBlockEntity
-