Package net.minecraft.world
Interface Container
- All Superinterfaces:
Clearable
- All Known Subinterfaces:
ContainerEntity
,ContainerSingleItem
,ContainerSingleItem.BlockContainerSingleItem
,CraftingContainer
,Hopper
,RandomizableContainer
,WorldlyContainer
- All Known Implementing Classes:
AbstractFurnaceBlockEntity
,AbstractMinecartContainer
,BarrelBlockEntity
,BaseContainerBlockEntity
,BlastFurnaceBlockEntity
,BrewingStandBlockEntity
,ChestBlockEntity
,ChestBoat
,ChiseledBookShelfBlockEntity
,ComposterBlock.EmptyContainer
,ComposterBlock.InputContainer
,ComposterBlock.OutputContainer
,CompoundContainer
,CrafterBlockEntity
,DecoratedPotBlockEntity
,DispenserBlockEntity
,DropperBlockEntity
,FurnaceBlockEntity
,HopperBlockEntity
,Inventory
,JukeboxBlockEntity
,MerchantContainer
,MinecartChest
,MinecartHopper
,PlayerEnderChestContainer
,RandomizableContainerBlockEntity
,RecipeBookExtensionTest.RecipeBookTestContainer
,RecipeWrapper
,ResultContainer
,ShulkerBoxBlockEntity
,SimpleContainer
,SmokerBlockEntity
,TransientCraftingContainer
,TrappedChestBlockEntity
-
Field Summary
-
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 int
getMaxStackSize
(ItemStack p_335963_) 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_, float p_320837_) default void
Methods inherited from interface net.minecraft.world.Clearable
clearContent
-
Field Details
-
DEFAULT_DISTANCE_BUFFER
static final float DEFAULT_DISTANCE_BUFFER- See Also:
-
-
Method Details
-
getContainerSize
int getContainerSize() -
isEmpty
boolean isEmpty() -
getItem
-
removeItem
-
removeItemNoUpdate
-
setItem
-
getMaxStackSize
default int getMaxStackSize() -
getMaxStackSize
-
setChanged
void setChanged() -
stillValid
-
startOpen
-
stopOpen
-
canPlaceItem
-
canTakeItem
-
countItem
-
hasAnyOf
-
hasAnyMatching
-
stillValidBlockEntity
-
stillValidBlockEntity
-