예제 #1
0
 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;
 }
예제 #2
0
 /** 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;
 }
예제 #3
0
 /** Gets the NBTTagCompound for the worldInfo */
 public NBTTagCompound getNBTTagCompound() {
   NBTTagCompound nbttagcompound = new NBTTagCompound();
   updateTagCompound(nbttagcompound, playerTag);
   return nbttagcompound;
 }