HomeJavaModsInventoryStorageAPI
ModsJava

InventoryStorageAPI

Storage Inventories Easily. Free Minecraft Java mod — download and open it in the game.

⬇ Download on Spigot
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";
    }

Plugin details

Read from the plugin's own plugin.yml.

InventoryStorageAPI is a free Minecraft Java mod. Downloaded 124 times (via Spigot). Download it and open it directly in the game.

Explore more