Ejemplo n.º 1
0
 @Override
 public void readFromNbt(NBTTagCompound compound) {
   super.readFromNbt(compound);
   if (compound.hasKey(NbtDataUtil.PROJECTILE_DAMAGE_AMOUNT)) {
     this.damageAmount = compound.getDouble(NbtDataUtil.PROJECTILE_DAMAGE_AMOUNT);
   }
   ProjectileSourceSerializer.readSourceFromNbt(compound, this);
 }
Ejemplo n.º 2
0
 @Override
 public void writeToNbt(NBTTagCompound compound) {
   super.writeToNbt(compound);
   compound.setDouble(NbtDataUtil.PROJECTILE_DAMAGE_AMOUNT, this.damageAmount);
   ProjectileSourceSerializer.writeSourceToNbt(compound, this.projectileSource, this.angler);
 }