ModsJava
InventoryStorageAPI
Storage Inventories Easily. Free Minecraft Java mod — download and open it in the game.
⬇ Download on SpigotStore an inventory:
Retrieve and inventory:
Example of an inventory:
Code (Text):
InventoryAPI.addInventory(Player, ICustomInventory);
Code (Text):
InventoryAPI.openInventory(Player, Inventory Name);
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";
}
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";
}
InventoryStorageAPI is a free Minecraft Java mod. Downloaded 124 times (via Spigot). Download it and open it directly in the game.