Exemplo 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);
 }
Exemplo 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);
 }