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; }
public ExchangeGUI getOtherGUI() { return e.getGUI(otherPlayer); }
private ItemStack getIStack(byte i, boolean b) { return e.getItemStack(i, b ? p : otherPlayer); }