Interface IInventory

All Superinterfaces:
IClearable
All Known Subinterfaces:
IHopper, ISidedInventory
All Known Implementing Classes:
AbstractFurnaceTileEntity, BarrelTileEntity, BlastFurnaceTileEntity, BrewingStandTileEntity, ChestMinecartEntity, ChestTileEntity, ComposterBlock.EmptyInventory, ComposterBlock.FullInventory, ComposterBlock.PartialInventory, ContainerMinecartEntity, CraftingInventory, CraftResultInventory, DispenserTileEntity, DoubleSidedInventory, DropperTileEntity, EnderChestInventory, FurnaceTileEntity, HopperMinecartEntity, HopperTileEntity, Inventory, LockableLootTileEntity, LockableTileEntity, MerchantInventory, PlayerInventory, RecipeWrapper, ShulkerBoxTileEntity, SmokerTileEntity, TrappedChestTileEntity

public interface IInventory extends IClearable
  • Method Details

    • getContainerSize

      int getContainerSize()
    • isEmpty

      boolean isEmpty()
    • getItem

      ItemStack getItem(int p_70301_1_)
    • removeItem

      ItemStack removeItem(int p_70298_1_, int p_70298_2_)
    • removeItemNoUpdate

      ItemStack removeItemNoUpdate(int p_70304_1_)
    • setItem

      void setItem(int p_70299_1_, ItemStack p_70299_2_)
    • getMaxStackSize

      default int getMaxStackSize()
    • setChanged

      void setChanged()
    • stillValid

      boolean stillValid(PlayerEntity p_70300_1_)
    • startOpen

      default void startOpen(PlayerEntity p_174889_1_)
    • stopOpen

      default void stopOpen(PlayerEntity p_174886_1_)
    • canPlaceItem

      default boolean canPlaceItem(int p_94041_1_, ItemStack p_94041_2_)
    • countItem

      default int countItem(Item p_213901_1_)
    • hasAnyOf

      default boolean hasAnyOf(Set<Item> p_213902_1_)