Esempio n. 1
0
 private ItemStack get(ResourceType type, boolean b) {
   int num = e.get(type, b ? p : otherPlayer);
   ItemStack stack = new ItemStack(type.getMaterial(), Integer.min(num, 64));
   ItemMeta meta = stack.getItemMeta();
   meta.setDisplayName(
       ChatColor.LIGHT_PURPLE.toString() + num + " " + type.getDisplayName(num > 1));
   stack.setItemMeta(meta);
   return stack;
 }
Esempio n. 2
0
 public ExchangeGUI getOtherGUI() {
   return e.getGUI(otherPlayer);
 }
Esempio n. 3
0
 private ItemStack getIStack(byte i, boolean b) {
   return e.getItemStack(i, b ? p : otherPlayer);
 }