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