public NBTTagCompound getNBTTagCompoundWithPlayer(List list) { NBTTagCompound nbttagcompound = new NBTTagCompound(); EntityPlayer entityplayer = null; NBTTagCompound nbttagcompound1 = null; if (list.size() > 0) { entityplayer = (EntityPlayer) list.get(0); } if (entityplayer != null) { nbttagcompound1 = new NBTTagCompound(); entityplayer.writeToNBT(nbttagcompound1); } updateTagCompound(nbttagcompound, nbttagcompound1); return nbttagcompound; }
/** Creates a new NBTTagCompound for the world, with the given NBTTag as the "Player" */ public NBTTagCompound cloneNBTCompound(NBTTagCompound par1NBTTagCompound) { NBTTagCompound nbttagcompound = new NBTTagCompound(); updateTagCompound(nbttagcompound, par1NBTTagCompound); return nbttagcompound; }
/** Gets the NBTTagCompound for the worldInfo */ public NBTTagCompound getNBTTagCompound() { NBTTagCompound nbttagcompound = new NBTTagCompound(); updateTagCompound(nbttagcompound, playerTag); return nbttagcompound; }