diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-06-27 00:25:01 +0200 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-06-27 00:47:03 +0200 |
commit | a98c7ba2c706caa0ba83bddefa5ffecbe658ccd3 (patch) | |
tree | f7c9c5db09b72b57a85240cc7fdb2e4bcf7ab875 /src/main/java/net/minecraft/server/WorldData.java | |
parent | 9e5dba8306f77e0583537efe7d5b3670639e3382 (diff) | |
download | craftbukkit-a98c7ba2c706caa0ba83bddefa5ffecbe658ccd3.tar craftbukkit-a98c7ba2c706caa0ba83bddefa5ffecbe658ccd3.tar.gz craftbukkit-a98c7ba2c706caa0ba83bddefa5ffecbe658ccd3.tar.lz craftbukkit-a98c7ba2c706caa0ba83bddefa5ffecbe658ccd3.tar.xz craftbukkit-a98c7ba2c706caa0ba83bddefa5ffecbe658ccd3.zip |
Massive renaming update in nms. If you bypassed Bukkit, you will likely break.
Also minimized all the nms diffs and generic cleanups all around.
Diffstat (limited to 'src/main/java/net/minecraft/server/WorldData.java')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldData.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/main/java/net/minecraft/server/WorldData.java b/src/main/java/net/minecraft/server/WorldData.java index bde44e06..3e8ef772 100644 --- a/src/main/java/net/minecraft/server/WorldData.java +++ b/src/main/java/net/minecraft/server/WorldData.java @@ -21,13 +21,13 @@ public class WorldData { private int o; public WorldData(NBTTagCompound nbttagcompound) { - this.a = nbttagcompound.f("RandomSeed"); + this.a = nbttagcompound.getLong("RandomSeed"); this.b = nbttagcompound.e("SpawnX"); this.c = nbttagcompound.e("SpawnY"); this.d = nbttagcompound.e("SpawnZ"); - this.e = nbttagcompound.f("Time"); - this.f = nbttagcompound.f("LastPlayed"); - this.g = nbttagcompound.f("SizeOnDisk"); + this.e = nbttagcompound.getLong("Time"); + this.f = nbttagcompound.getLong("LastPlayed"); + this.g = nbttagcompound.getLong("SizeOnDisk"); this.name = nbttagcompound.getString("LevelName"); this.k = nbttagcompound.e("version"); this.m = nbttagcompound.e("rainTime"); @@ -89,13 +89,13 @@ public class WorldData { } private void a(NBTTagCompound nbttagcompound, NBTTagCompound nbttagcompound1) { - nbttagcompound.a("RandomSeed", this.a); + nbttagcompound.setLong("RandomSeed", this.a); nbttagcompound.a("SpawnX", this.b); nbttagcompound.a("SpawnY", this.c); nbttagcompound.a("SpawnZ", this.d); - nbttagcompound.a("Time", this.e); - nbttagcompound.a("SizeOnDisk", this.g); - nbttagcompound.a("LastPlayed", System.currentTimeMillis()); + nbttagcompound.setLong("Time", this.e); + nbttagcompound.setLong("SizeOnDisk", this.g); + nbttagcompound.setLong("LastPlayed", System.currentTimeMillis()); nbttagcompound.setString("LevelName", this.name); nbttagcompound.a("version", this.k); nbttagcompound.a("rainTime", this.m); @@ -107,7 +107,7 @@ public class WorldData { } } - public long b() { + public long getSeed() { return this.a; } @@ -161,35 +161,35 @@ public class WorldData { this.k = i; } - public boolean j() { + public boolean isThundering() { return this.n; } - public void a(boolean flag) { + public void setThundering(boolean flag) { this.n = flag; } - public int k() { + public int getThunderDuration() { return this.o; } - public void b(int i) { + public void setThunderDuration(int i) { this.o = i; } - public boolean l() { + public boolean hasStorm() { return this.l; } - public void b(boolean flag) { + public void setStorm(boolean flag) { this.l = flag; } - public int m() { + public int getWeatherDuration() { return this.m; } - public void c(int i) { + public void setWeatherDuration(int i) { this.m = i; } } |