[impossible] Custom InventoryView?

Discussion in 'Plugin Development' started by InflamedSebi, Sep 15, 2013.

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

    InflamedSebi

    Hay there, I try to open an inventory but i want to change its apperance...
    An InvetoryView should link 2 invetories together ...
    and if I do this:
    Code:java
    1.  
    2. Inventory inv = Bukkit.createInvetory(player, 27, "MyInventory");
    3. player.openInventory(inv);
    4.  


    this looks like:
    Code:
    MyInventory:
    [][][][][][][][][]
    [][][][][][][][][]
    [][][][][][][][][]
    Player Inventory:
    [][][][][][][][][]
    [][][][][][][][][]
    [][][][][][][][][]
    __________________
    [][][][][][][][][]
    
    Now I am looking for a way to link 2 custom invetorys thogether in the InvetoryView, so it looks like:

    Code:
    MyInventory:
    [][][][][][][][][]
    [][][][][][][][][]
    [][][][][][][][][]
    AnotherInventory:
    [][][][][][][][][]
    [][][][][][][][][]
    [][][][][][][][][]
    
    I am having trouble to create my own instance of InvetoryView ... because there is no public constructor ...

    anyone here who can help me?
     
  2. evilmidget38 likes this.
  3. Offline

    InflamedSebi

    dang .... it should ... maybe someone else knows how to do this ...
     
  4. Offline

    chasechocolate

  5. Offline

    The_Doctor_123

    It's not possible, but you could put the contents of two inventories into one.
     
Thread Status:
Not open for further replies.

Share This Page