Examples of firstEmpty()


Examples of org.bukkit.inventory.PlayerInventory.firstEmpty()

    updateReady = false;
  }
 
  public static boolean addHead(Player player, String skullOwner) {
    PlayerInventory inv = player.getInventory();
    int firstEmpty = inv.firstEmpty();
    if (firstEmpty == -1) {
      return false;
    } else {
      inv.setItem(firstEmpty, new Skull(skullOwner).getItemStack());
      return true;
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.