diff options
author | EvilSeph <evilseph@gmail.com> | 2012-03-09 13:34:27 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-09 13:34:27 -0500 |
commit | ec2713b25699250fda91a34126dad52282f8b858 (patch) | |
tree | 2a211df78d605bfbae46b897b47630f583c41b46 /src | |
parent | d1dd96f5605b24de2dfece64b613b46dd153abdb (diff) | |
download | craftbukkit-ec2713b25699250fda91a34126dad52282f8b858.tar craftbukkit-ec2713b25699250fda91a34126dad52282f8b858.tar.gz craftbukkit-ec2713b25699250fda91a34126dad52282f8b858.tar.lz craftbukkit-ec2713b25699250fda91a34126dad52282f8b858.tar.xz craftbukkit-ec2713b25699250fda91a34126dad52282f8b858.zip |
Added WorldProviderTheEnd for diff visibility.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldProviderTheEnd.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/WorldProviderTheEnd.java b/src/main/java/net/minecraft/server/WorldProviderTheEnd.java new file mode 100644 index 00000000..769af219 --- /dev/null +++ b/src/main/java/net/minecraft/server/WorldProviderTheEnd.java @@ -0,0 +1,42 @@ +package net.minecraft.server; + +public class WorldProviderTheEnd extends WorldProvider { + + public WorldProviderTheEnd() {} + + public void a() { + this.c = new WorldChunkManagerHell(BiomeBase.SKY, 0.5F, 0.0F); + this.dimension = 1; + this.e = true; + } + + public IChunkProvider getChunkProvider() { + return new ChunkProviderTheEnd(this.a, this.a.getSeed()); + } + + public float a(long i, float f) { + return 0.0F; + } + + public boolean c() { + return false; + } + + public boolean d() { + return false; + } + + public boolean canSpawn(int i, int j) { + int k = this.a.b(i, j); + + return k == 0 ? false : Block.byId[k].material.isSolid(); + } + + public ChunkCoordinates e() { + return new ChunkCoordinates(100, 50, 0); + } + + public int getSeaLevel() { + return 50; + } +} |