/** Writes a tile entity to NBT. */ public void writeToNBT(NBTTagCompound par1NBTTagCompound) { super.writeToNBT(par1NBTTagCompound); par1NBTTagCompound.setString("EntityId", mobID); par1NBTTagCompound.setShort("Delay", (short) delay); par1NBTTagCompound.setShort("MinSpawnDelay", (short) field_70388_f); par1NBTTagCompound.setShort("MaxSpawnDelay", (short) field_70389_g); par1NBTTagCompound.setShort("SpawnCount", (short) field_70395_h); if (field_70391_e != null) { par1NBTTagCompound.setCompoundTag("SpawnData", field_70391_e); } }