Example #1
0
 public WorldInfo(net.minecraft.src.NBTTagCompound nbttagcompound)
 {
     // Referenced classes of package net.minecraft.src:
     //            NBTTagCompound, EntityPlayer
     randomSeed     = nbttagcompound.GetLong("RandomSeed");
     spawnX         = nbttagcompound.GetInteger("SpawnX");
     spawnY         = nbttagcompound.GetInteger("SpawnY");
     spawnZ         = nbttagcompound.GetInteger("SpawnZ");
     worldTime      = nbttagcompound.GetLong("Time");
     lastTimePlayed = nbttagcompound.GetLong("LastPlayed");
     sizeOnDisk     = nbttagcompound.GetLong("SizeOnDisk");
     levelName      = nbttagcompound.GetString("LevelName");
     saveVersion    = nbttagcompound.GetInteger("version");
     rainTime       = nbttagcompound.GetInteger("rainTime");
     isRaining      = nbttagcompound.GetBoolean("raining");
     thunderTime    = nbttagcompound.GetInteger("thunderTime");
     isThundering   = nbttagcompound.GetBoolean("thundering");
     if (nbttagcompound.HasKey("Player"))
     {
         field_22195_h = nbttagcompound.GetCompoundTag("Player");
         dimension     = field_22195_h.GetInteger("Dimension");
     }
 }