Interface Container

All Superinterfaces:
Clearable
All Known Subinterfaces:
ContainerEntity, Hopper, WorldlyContainer
All Known Implementing Classes:
AbstractFurnaceBlockEntity, AbstractMinecartContainer, BarrelBlockEntity, BaseContainerBlockEntity, BlastFurnaceBlockEntity, BrewingStandBlockEntity, ChestBlockEntity, ChestBoat, ChiseledBookShelfBlockEntity, ComposterBlock.EmptyContainer, ComposterBlock.InputContainer, ComposterBlock.OutputContainer, CompoundContainer, CraftingContainer, DispenserBlockEntity, DropperBlockEntity, FurnaceBlockEntity, HopperBlockEntity, Inventory, MerchantContainer, MinecartChest, MinecartHopper, PlayerEnderChestContainer, RandomizableContainerBlockEntity, RecipeBookExtensionTest.RecipeBookTestContainer, RecipeWrapper, ResultContainer, ShulkerBoxBlockEntity, SimpleContainer, SmokerBlockEntity, TrappedChestBlockEntity

public interface Container extends Clearable
  • Field Details

  • Method Details

    • getContainerSize

      int getContainerSize()
    • isEmpty

      boolean isEmpty()
    • getItem

      ItemStack getItem(int p_18941_)
    • removeItem

      ItemStack removeItem(int p_18942_, int p_18943_)
    • removeItemNoUpdate

      ItemStack removeItemNoUpdate(int p_18951_)
    • setItem

      void setItem(int p_18944_, ItemStack p_18945_)
    • getMaxStackSize

      default int getMaxStackSize()
    • setChanged

      void setChanged()
    • stillValid

      boolean stillValid(Player p_18946_)
    • startOpen

      default void startOpen(Player p_18955_)
    • stopOpen

      default void stopOpen(Player p_18954_)
    • canPlaceItem

      default boolean canPlaceItem(int p_18952_, ItemStack p_18953_)
    • countItem

      default int countItem(Item p_18948_)
    • hasAnyOf

      default boolean hasAnyOf(Set<Item> p_18950_)
    • hasAnyMatching

      default boolean hasAnyMatching(Predicate<ItemStack> p_216875_)