Interface Inventory

All Superinterfaces:
Iterable<ItemStack>
All Known Subinterfaces:
AbstractHorseInventory, AnvilInventory, BeaconInventory, BrewerInventory, CartographyInventory, ChiseledBookshelfInventory, CrafterInventory, CraftingInventory, DecoratedPotInventory, DoubleChestInventory, EnchantingInventory, FurnaceInventory, GrindstoneInventory, HorseInventory, JukeboxInventory, LecternInventory, LlamaInventory, LoomInventory, MerchantInventory, PlayerInventory, SmithingInventory, StonecutterInventory

public interface Inventory extends Iterable<ItemStack>
Interface to the various inventories. Behavior relating to Material.AIR is unspecified.
Note that whilst iterator() deals with the entire inventory, add / contains / remove methods deal only with the storage contents.
Consider using getContents() and getStorageContents() for specific iteration.
See Also: