Examples of CraftInventoryPlayer


Examples of org.bukkit.craftbukkit.v1_6_R1.inventory.CraftInventoryPlayer

  // CREATE PLAYER INVENTORY
  // -------------------------------------------- //
 
  public static PlayerInventory createPlayerInventory()
  {
    return new CraftInventoryPlayer(new MCorePlayerInventory());
  }
View Full Code Here

Examples of org.bukkit.craftbukkit.v1_6_R1.inventory.CraftInventoryPlayer

    {
      // We use 36 here since it's the size of the player inventory (without armor)
      size = 36;
     
      // This is a PlayerInventory
      ret = new CraftInventoryPlayer(new MCorePlayerInventory());
      PlayerInventory pret = (PlayerInventory)ret;
     
      // helmet
      if (jsonInventory.has(HELMET))
      {
View Full Code Here

Examples of org.bukkit.craftbukkit.v1_6_R3.inventory.CraftInventoryPlayer

                    }

                }
            }
        }
        PlayerInventory inv = new CraftInventoryPlayer(new net.minecraft.server.v1_6_R3.PlayerInventory(null));
        ItemStack[] stacks = inv.getContents();
        inv.setContents(array.toArray(stacks));
        return inv;
    }
View Full Code Here

Examples of org.bukkit.craftbukkit.v1_7_R4.inventory.CraftInventoryPlayer

    public org.bukkit.inventory.PlayerInventory getInventory() {
        if (InventoryScriptHelper.offlineInventories.containsKey(getUniqueId()))
            return InventoryScriptHelper.offlineInventories.get(getUniqueId());
        PlayerInventory inventory = new PlayerInventory(null);
        inventory.b(this.compound.getList("Inventory", 10));
        org.bukkit.inventory.PlayerInventory inv = new CraftInventoryPlayer(inventory);
        InventoryScriptHelper.offlineInventories.put(getUniqueId(), inv);
        return inv;
    }
View Full Code Here

Examples of org.bukkit.craftbukkit.v1_7_R4.inventory.CraftInventoryPlayer

        InventoryScriptHelper.offlineInventories.put(getUniqueId(), inv);
        return inv;
    }

    public void setInventory(org.bukkit.inventory.Inventory inventory) {
        CraftInventoryPlayer inv = new CraftInventoryPlayer(new PlayerInventory(null));
        inv.setContents(inventory.getContents());
        this.compound.set("Inventory", inv.getInventory().a(new NBTTagList()));
        if(this.autosave) savePlayerData();
    }
View Full Code Here

Examples of org.spoutcraft.client.inventory.CraftInventoryPlayer

  public String getName() {
    return getMCPlayer().username;
  }

  public PlayerInventory getInventory() {
    return new CraftInventoryPlayer(getMCPlayer().inventory);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.