/// <summary> /// Generates the NBTTagCompound for the world info plus the provided entity list. Arg: entityList /// </summary> public virtual NBTTagCompound GetNBTTagCompoundWithPlayers(List <EntityPlayer> par1List) { NBTTagCompound nbttagcompound = new NBTTagCompound(); EntityPlayer entityplayer = null; NBTTagCompound nbttagcompound1 = null; if (par1List.Count > 0) { entityplayer = par1List[0]; } if (entityplayer != null) { nbttagcompound1 = new NBTTagCompound(); entityplayer.WriteToNBT(nbttagcompound1); } UpdateTagCompound(nbttagcompound, nbttagcompound1); return(nbttagcompound); }