@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); }
@Override public void writeToNbt(NBTTagCompound compound) { super.writeToNbt(compound); compound.setDouble(NbtDataUtil.PROJECTILE_DAMAGE_AMOUNT, this.damageAmount); ProjectileSourceSerializer.writeSourceToNbt(compound, this.projectileSource, this.angler); }