Examples of SpoutCraftInventoryPlayer


Examples of org.getspout.spout.inventory.SpoutCraftInventoryPlayer

    lastClicked = location;
  }

  public void createInventory(String name) {
    if (this.getHandle().activeContainer instanceof ContainerPlayer) {
      this.inventory = new SpoutCraftInventoryPlayer(this.getHandle().inventory, new SpoutCraftingInventory(((ContainerPlayer) this.getHandle().activeContainer).craftInventory, ((ContainerPlayer) this.getHandle().activeContainer).resultInventory));
      if (name != null) {
        this.inventory.setName(name);
      }
    } else {
      this.inventory = new SpoutCraftInventoryPlayer(this.getHandle().inventory, new SpoutCraftingInventory(((ContainerPlayer) this.getHandle().defaultContainer).craftInventory, ((ContainerPlayer) this.getHandle().defaultContainer).resultInventory));
      if (name != null) {
        this.inventory.setName(name);
      }
    }
  }
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.