@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);
 }
Example #2
0
 public void setCooldown(ItemStack ist, long i) {
   NBTHelper.setLong("cooldownTime", ist, i);
 }
Example #3
0
 public long getCooldown(ItemStack ist) {
   return NBTHelper.getLong("cooldownTime", ist);
 }
Example #4
0
 public void setInCooldown(ItemStack ist, boolean inCooldown) {
   NBTHelper.setBoolean("inCooldown", ist, inCooldown);
 }
Example #5
0
 public boolean isInCooldown(ItemStack ist) {
   return NBTHelper.getBoolean("inCooldown", ist);
 }
Example #6
0
 public void setLastFiredShotType(ItemStack ist, int i) {
   NBTHelper.setShort("lastFiredShot", ist, i);
 }
Example #7
0
 public void setBulletType(ItemStack ist, int i) {
   NBTHelper.setShort("bulletType", ist, i);
 }
Example #8
0
 public int getBulletType(ItemStack ist) {
   return NBTHelper.getShort("bulletType", ist);
 }
Example #9
0
 public void setBulletCount(ItemStack ist, int i) {
   NBTHelper.setShort("bulletCount", ist, i);
 }
Example #10
0
 public int getBulletCount(ItemStack ist) {
   return NBTHelper.getShort("bulletCount", ist);
 }