예제 #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);
 }