Package net.minecraft.world
Interface Container
- All Superinterfaces:
Clearable
- All Known Subinterfaces:
ContainerEntity
,ContainerSingleItem
,CraftingContainer
,Hopper
,WorldlyContainer
- All Known Implementing Classes:
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
,RecipeBookExtensionTest.RecipeBookTestContainer
,RecipeWrapper
,ResultContainer
,ShulkerBoxBlockEntity
,SimpleContainer
,SmokerBlockEntity
,TransientCraftingContainer
,TrappedChestBlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
canPlaceItem
(int p_18952_, ItemStack p_18953_) default boolean
canTakeItem
(Container p_273520_, int p_272681_, ItemStack p_273702_) default int
int
getItem
(int p_18941_) default int
default boolean
hasAnyMatching
(Predicate<ItemStack> p_216875_) default boolean
boolean
isEmpty()
removeItem
(int p_18942_, int p_18943_) removeItemNoUpdate
(int p_18951_) void
void
default void
boolean
stillValid
(Player p_18946_) static boolean
stillValidBlockEntity
(BlockEntity p_273154_, Player p_273222_) static boolean
stillValidBlockEntity
(BlockEntity p_272877_, Player p_272670_, int p_273411_) default void
Methods inherited from interface net.minecraft.world.Clearable
clearContent
-
Field Details
-
LARGE_MAX_STACK_SIZE
static final int LARGE_MAX_STACK_SIZE- See Also:
-
DEFAULT_DISTANCE_LIMIT
static final int DEFAULT_DISTANCE_LIMIT- See Also:
-
-
Method Details
-
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
-