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,RecipeWrapper,ResultContainer,ShulkerBoxBlockEntity,SimpleContainer,SimpleCraftingContainer,SmokerBlockEntity,TransientCraftingContainer,TrappedChestBlockEntity
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int - 
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanPlaceItem(int p_18952_, ItemStack p_18953_) default booleancanTakeItem(Container p_273520_, int p_272681_, ItemStack p_273702_) default intintgetItem(int p_18941_) default intdefault booleanhasAnyMatching(Predicate<ItemStack> p_216875_) default booleanbooleanisEmpty()removeItem(int p_18942_, int p_18943_) removeItemNoUpdate(int p_18951_) voidvoiddefault voidbooleanstillValid(Player p_18946_) static booleanstillValidBlockEntity(BlockEntity p_273154_, Player p_273222_) static booleanstillValidBlockEntity(BlockEntity p_272877_, Player p_272670_, int p_273411_) default voidMethods 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
 
 -