Solved Creating a new inventory

Discussion in 'Plugin Development' started by Tirelessly, Nov 19, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Tirelessly

    You can't instantiate an inventory because it's an anonymous inner type. However, in my plugin I want to create an inventory which is not linked to a chest or likewise. Does anybody know how I could do this?
     
  2. Offline

    raGan.

    I use this one:
    Inventory inv = Bukkit.getServer().createInventory(null, InventoryType.PLAYER);
     
  3. Offline

    Tirelessly

    Thanks, works perfectly.
     
Thread Status:
Not open for further replies.

Share This Page