Esempio n. 1
0
 public static boolean addHead(Player player, String skullOwner, int quantity) {
   PlayerInventory inv = player.getInventory();
   int firstEmpty = inv.firstEmpty();
   if (firstEmpty == -1) {
     return false;
   } else {
     inv.setItem(firstEmpty, Tools.Skull(skullOwner, quantity));
     return true;
   }
 }
Esempio n. 2
0
 public String getDisplayName() {
   return Tools.format(Lang.getString("HEAD_" + name()));
 }