InventoryStorageAPI 1.0.0

Storage Inventories Easily

  1. tiffit
    Store an inventory:
    Code (Text):
    InventoryAPI.addInventory(Player, ICustomInventory);
    Retrieve and inventory:
    Code (Text):
    InventoryAPI.openInventory(Player, Inventory Name);
    Example of an inventory:
    Code (Text):
    public class Test implements ICustomInventory {

        Player p;

        public Test(Player p){
            this.p = p;
        }

        @Override
        public Inventory getInv() {
            Inventory inv = Bukkit.createInventory(null, 9, getName());
            inv.addItem(ItemStackUtil.createStack(Material.DIAMOND, ChatColor.GREEN + "DIAMONDZ"));
            return inv;
        }

        @Override
        public String getName() {
            return "test";
        }