creating an inventory in minecraft plugins code example
Example: spigot how to make an inventory
Inventory inv = Bukkit.createInventory(player, yourSize, "My Inventory Name");
Inventory inv = Bukkit.createInventory(player, yourSize, "My Inventory Name");