@Override public void addInformation( ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) { this.formatTooltip( ImmutableMap.of("experience", String.valueOf(NBTHelper.getShort("experience", stack))), stack, list); }
public void setCooldown(ItemStack ist, long i) { NBTHelper.setLong("cooldownTime", ist, i); }
public long getCooldown(ItemStack ist) { return NBTHelper.getLong("cooldownTime", ist); }
public void setInCooldown(ItemStack ist, boolean inCooldown) { NBTHelper.setBoolean("inCooldown", ist, inCooldown); }
public boolean isInCooldown(ItemStack ist) { return NBTHelper.getBoolean("inCooldown", ist); }
public void setLastFiredShotType(ItemStack ist, int i) { NBTHelper.setShort("lastFiredShot", ist, i); }
public void setBulletType(ItemStack ist, int i) { NBTHelper.setShort("bulletType", ist, i); }
public int getBulletType(ItemStack ist) { return NBTHelper.getShort("bulletType", ist); }
public void setBulletCount(ItemStack ist, int i) { NBTHelper.setShort("bulletCount", ist, i); }
public int getBulletCount(ItemStack ist) { return NBTHelper.getShort("bulletCount", ist); }