Package org.spout.vanilla.inventory.player

Examples of org.spout.vanilla.inventory.player.PlayerCraftingInventory.clear()


    for (ItemStack item : inventory) {
      if (item != null) {
        getHuman().dropItem(item);
      }
    }
    inventory.clear();

    //Do not call super-close, DefaultWindow only pseudo-closes
    if (!(getPlayer().getEngine() instanceof Server)) {
      super.close();
    }
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.