@Override public void writeEntityToNBT(NBTTagCompound nbt) { super.writeEntityToNBT(nbt); if (color != null) nbt.setInteger("color", color.ordinal()); nbt.setBoolean("dodrops", doDrops); nbt.setBoolean("pylon", isPylonSpawn); nbt.setBoolean("isdead", isDead); }
/** (abstract) Protected helper method to write subclass entity data to NBT. */ public void writeEntityToNBT(NBTTagCompound p_70014_1_) { super.writeEntityToNBT(p_70014_1_); p_70014_1_.setInteger("Size", this.getSlimeSize() - 1); }
/** (abstract) Protected helper method to write subclass entity data to NBT. */ public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound) { par1NBTTagCompound.setByte("Is Grounded", this.dataWatcher.getWatchableObjectByte(17)); super.writeEntityToNBT(par1NBTTagCompound); }