summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorRigby <rigby@onarandombox.com>2011-04-23 17:57:25 +0100
committerEvilSeph <evilseph@unaligned.org>2011-04-25 16:49:24 -0400
commit5fff84c5a9d87ccd050be2a68b299588be766cbe (patch)
treeeae3b28613cb541e0168df4163c497d7c0702fd5 /src/main/java
parent1db5464d918466037e214b0db6e2755f85db537b (diff)
downloadcraftbukkit-5fff84c5a9d87ccd050be2a68b299588be766cbe.tar
craftbukkit-5fff84c5a9d87ccd050be2a68b299588be766cbe.tar.gz
craftbukkit-5fff84c5a9d87ccd050be2a68b299588be766cbe.tar.lz
craftbukkit-5fff84c5a9d87ccd050be2a68b299588be766cbe.tar.xz
craftbukkit-5fff84c5a9d87ccd050be2a68b299588be766cbe.zip
Added the ability to retrieve a world's Seed.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 357476ed..96895634 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -594,4 +594,8 @@ public class CraftWorld implements World {
public void setThunderDuration(int duration) {
world.worldData.b(duration);
}
+
+ public long getSeed() {
+ return world.worldData.b();
+ }
}