diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-07-22 01:18:00 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-07-23 23:55:31 -0500 |
commit | b00de5f1768e14238f8660b63eb3fd5d744fc0a9 (patch) | |
tree | 2c1407b1ef81f38e16f3c4e453bec077dfd1eb53 /src/main/java/net/minecraft/server/WorldServer.java | |
parent | 8b9aad8c2b4057ab33a7bff2b8711d0d48c13568 (diff) | |
download | craftbukkit-b00de5f1768e14238f8660b63eb3fd5d744fc0a9.tar craftbukkit-b00de5f1768e14238f8660b63eb3fd5d744fc0a9.tar.gz craftbukkit-b00de5f1768e14238f8660b63eb3fd5d744fc0a9.tar.lz craftbukkit-b00de5f1768e14238f8660b63eb3fd5d744fc0a9.tar.xz craftbukkit-b00de5f1768e14238f8660b63eb3fd5d744fc0a9.zip |
Cleaned up CraftBukkit comments in NMS.
Added newlines at the end of files
Fixed improper line endings on some files
Matched start - end comments
Added some missing comments for diffs
Fixed syntax on some spots
Minimized some diff
Removed some no longer used files
Added comment on some required files with no changes
Fixed imports of items used once
Added imports for items used more than once
Diffstat (limited to 'src/main/java/net/minecraft/server/WorldServer.java')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldServer.java | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java index 9b67eb73..a9344efd 100644 --- a/src/main/java/net/minecraft/server/WorldServer.java +++ b/src/main/java/net/minecraft/server/WorldServer.java @@ -4,16 +4,9 @@ import java.util.ArrayList; import java.util.List; // CraftBukkit start -import org.bukkit.BlockChangeDelegate; -import org.bukkit.generator.ChunkGenerator; -import org.bukkit.craftbukkit.generator.CustomChunkGenerator; -import org.bukkit.craftbukkit.generator.InternalChunkGenerator; -import org.bukkit.craftbukkit.generator.NetherChunkGenerator; -import org.bukkit.craftbukkit.generator.NormalChunkGenerator; -import org.bukkit.craftbukkit.generator.SkyLandsChunkGenerator; import org.bukkit.event.weather.LightningStrikeEvent; -public class WorldServer extends World implements BlockChangeDelegate { +public class WorldServer extends World implements org.bukkit.BlockChangeDelegate { // CraftBukkit end public ChunkProviderServer chunkProviderServer; @@ -23,7 +16,7 @@ public class WorldServer extends World implements BlockChangeDelegate { private IntHashMap entitiesById; // CraftBukkit start - change signature - public WorldServer(MinecraftServer minecraftserver, IDataManager idatamanager, String s, int i, WorldSettings worldsettings, org.bukkit.World.Environment env, ChunkGenerator gen) { + public WorldServer(MinecraftServer minecraftserver, IDataManager idatamanager, String s, int i, WorldSettings worldsettings, org.bukkit.World.Environment env, org.bukkit.generator.ChunkGenerator gen) { super(idatamanager, s, worldsettings, WorldProvider.byDimension(env.getId()), gen, env); this.server = minecraftserver; if (this.entitiesById == null) { @@ -115,16 +108,16 @@ public class WorldServer extends World implements BlockChangeDelegate { IChunkLoader ichunkloader = this.dataManager.createChunkLoader(this.worldProvider); // CraftBukkit start - InternalChunkGenerator gen; + org.bukkit.craftbukkit.generator.InternalChunkGenerator gen; if (this.generator != null) { - gen = new CustomChunkGenerator(this, this.getSeed(), this.generator); + gen = new org.bukkit.craftbukkit.generator.CustomChunkGenerator(this, this.getSeed(), this.generator); } else if (this.worldProvider instanceof WorldProviderHell) { - gen = new NetherChunkGenerator(this, this.getSeed()); + gen = new org.bukkit.craftbukkit.generator.NetherChunkGenerator(this, this.getSeed()); } else if (this.worldProvider instanceof WorldProviderTheEnd) { - gen = new SkyLandsChunkGenerator(this, this.getSeed()); + gen = new org.bukkit.craftbukkit.generator.SkyLandsChunkGenerator(this, this.getSeed()); } else { - gen = new NormalChunkGenerator(this, this.getSeed()); + gen = new org.bukkit.craftbukkit.generator.NormalChunkGenerator(this, this.getSeed()); } this.chunkProviderServer = new ChunkProviderServer(this, ichunkloader, gen); |