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
Fields -
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 intgetMaxStackSize(ItemStack p_335963_) default 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_, float p_320837_) default voidMethods 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
-