Ejemplo n.º 1
0
 public WorldInfo(NBTTagCompound nbttagcompound)
 {
     randomSeed = nbttagcompound.getLong("RandomSeed");
     spawnX = nbttagcompound.getInteger("SpawnX");
     spawnY = nbttagcompound.getInteger("SpawnY");
     spawnZ = nbttagcompound.getInteger("SpawnZ");
     worldTime = nbttagcompound.getLong("Time");
     lastPlayed = nbttagcompound.getLong("LastPlayed");
     sizeOnDisk = nbttagcompound.getLong("SizeOnDisk");
     levelName = nbttagcompound.getString("LevelName");
     version = nbttagcompound.getInteger("version");
     if (nbttagcompound.hasKey("Player"))
     {
         field_22195_h = nbttagcompound.getCompoundTag("Player");
         field_22194_i = field_22195_h.getInteger("Dimension");
     }
 }
Ejemplo n.º 2
0
 public WorldInfo(NBTTagCompound nbttagcompound)
 {
     randomSeed = nbttagcompound.getLong("RandomSeed");
     spawnX     = nbttagcompound.getInteger("SpawnX");
     spawnY     = nbttagcompound.getInteger("SpawnY");
     spawnZ     = nbttagcompound.getInteger("SpawnZ");
     worldTime  = nbttagcompound.getLong("Time");
     lastPlayed = nbttagcompound.getLong("LastPlayed");
     sizeOnDisk = nbttagcompound.getLong("SizeOnDisk");
     levelName  = nbttagcompound.getString("LevelName");
     version    = nbttagcompound.getInteger("version");
     if (nbttagcompound.hasKey("Player"))
     {
         field_22195_h = nbttagcompound.getCompoundTag("Player");
         field_22194_i = field_22195_h.getInteger("Dimension");
     }
 }