Interface InventoryBased

All Superinterfaces:
InventoryHolder
All Known Implementing Classes:
AnvilGui, BarrelGui, BeaconGui, BlastFurnaceGui, BrewingStandGui, CartographyTableGui, ChestGui, CrafterGui, CraftingTableGui, DispenserGui, DropperGui, EnchantingTableGui, EnderChestGui, FurnaceGui, GrindstoneGui, HopperGui, MerchantGui, ModernSmithingTableGui, ShulkerBoxGui, SmithingTableGui, SmokerGui, StonecutterGui

public interface InventoryBased extends InventoryHolder
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Inventory
    Creates a new inventory of the type of the implementing class.

    Methods inherited from interface InventoryHolder

    getInventory
  • Method Details

    • createInventory

      @NotNull @Contract(pure=true) @NotNull Inventory createInventory()
      Creates a new inventory of the type of the implementing class.
      Returns:
      the new inventory
      Since:
      0.10.0