summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/WorldData.java
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2011-04-20 22:47:26 +0200
committerEvilSeph <evilseph@unaligned.org>2011-04-21 04:25:46 -0400
commita6c8a36dcea9c976d8b48f8b942608248db8cb4f (patch)
tree9b4039d8f0a9969abf5110a94d75925c4ad52524 /src/main/java/net/minecraft/server/WorldData.java
parent2fd3f8d299fdee827de90a999c5a4c9fd6eefeb9 (diff)
downloadcraftbukkit-a6c8a36dcea9c976d8b48f8b942608248db8cb4f.tar
craftbukkit-a6c8a36dcea9c976d8b48f8b942608248db8cb4f.tar.gz
craftbukkit-a6c8a36dcea9c976d8b48f8b942608248db8cb4f.tar.lz
craftbukkit-a6c8a36dcea9c976d8b48f8b942608248db8cb4f.tar.xz
craftbukkit-a6c8a36dcea9c976d8b48f8b942608248db8cb4f.zip
Update for 1.5_02.
Diffstat (limited to 'src/main/java/net/minecraft/server/WorldData.java')
-rw-r--r--src/main/java/net/minecraft/server/WorldData.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/WorldData.java b/src/main/java/net/minecraft/server/WorldData.java
index 233a3974..a07969db 100644
--- a/src/main/java/net/minecraft/server/WorldData.java
+++ b/src/main/java/net/minecraft/server/WorldData.java
@@ -15,6 +15,10 @@ public class WorldData {
private int i;
public String name; // CraftBukkit private->public
private int k;
+ private boolean l;
+ private int m;
+ private boolean n;
+ private int o;
public WorldData(NBTTagCompound nbttagcompound) {
this.a = nbttagcompound.f("RandomSeed");
@@ -26,6 +30,10 @@ public class WorldData {
this.g = nbttagcompound.f("SizeOnDisk");
this.name = nbttagcompound.getString("LevelName");
this.k = nbttagcompound.e("version");
+ this.m = nbttagcompound.e("rainTime");
+ this.l = nbttagcompound.m("raining");
+ this.o = nbttagcompound.e("thunderTime");
+ this.n = nbttagcompound.m("thundering");
if (nbttagcompound.hasKey("Player")) {
this.h = nbttagcompound.k("Player");
this.i = this.h.e("Dimension");
@@ -49,6 +57,10 @@ public class WorldData {
this.i = worlddata.i;
this.name = worlddata.name;
this.k = worlddata.k;
+ this.m = worlddata.m;
+ this.l = worlddata.l;
+ this.o = worlddata.o;
+ this.n = worlddata.n;
}
public NBTTagCompound a() {
@@ -86,6 +98,10 @@ public class WorldData {
nbttagcompound.a("LastPlayed", System.currentTimeMillis());
nbttagcompound.setString("LevelName", this.name);
nbttagcompound.a("version", this.k);
+ nbttagcompound.a("rainTime", this.m);
+ nbttagcompound.a("raining", this.l);
+ nbttagcompound.a("thunderTime", this.o);
+ nbttagcompound.a("thundering", this.n);
if (nbttagcompound1 != null) {
nbttagcompound.a("Player", nbttagcompound1);
}
@@ -144,4 +160,36 @@ public class WorldData {
public void a(int i) {
this.k = i;
}
+
+ public boolean j() {
+ return this.n;
+ }
+
+ public void a(boolean flag) {
+ this.n = flag;
+ }
+
+ public int k() {
+ return this.o;
+ }
+
+ public void b(int i) {
+ this.o = i;
+ }
+
+ public boolean l() {
+ return this.l;
+ }
+
+ public void b(boolean flag) {
+ this.l = flag;
+ }
+
+ public int m() {
+ return this.m;
+ }
+
+ public void c(int i) {
+ this.m = i;
+ }
}