Package org.spout.api.inventory

Examples of org.spout.api.inventory.ItemStack.clone()


      Slot selected = inventory.getQuickbar().getSelectedSlot();
      ItemStack drop = selected.get();
      if (drop == null) {
        return;
      } else {
        drop = drop.clone().setAmount(1);
      }
      selected.addAmount(-1);
      dropItem(drop);
    }
  }
View Full Code Here


        }
        if (get.getAmount() == 1) {
          getHuman().dropItem(get);
          args.getSlot().set(null);
        } else {
          getHuman().dropItem(get.clone().setAmount(1));
          args.getSlot().addAmount(-1);
        }
        return true;
      case CTRL_DROP:
        if (args.getSlot().get() == null) {
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.