Massive renaming update in nms. If you bypassed Bukkit, you will likely break.

Also minimized all the nms diffs and generic cleanups all around.
This commit is contained in:
Erik Broes
2011-06-27 00:25:01 +02:00
parent 9e5dba8306
commit a98c7ba2c7
126 changed files with 1329 additions and 1772 deletions

View File

@@ -34,7 +34,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
Chunk chunk = new Chunk(world, types, x, z);
chunk.b();
chunk.initLighting();
return chunk;
}
@@ -51,7 +51,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
return false;
}
public boolean b() {
public boolean canSave() {
return true;
}

View File

@@ -14,7 +14,7 @@ public class NormalChunkGenerator extends InternalChunkGenerator {
private final IChunkProvider provider;
public NormalChunkGenerator(World world, long seed) {
provider = world.worldProvider.b();
provider = world.worldProvider.getChunkProvider();
}
public byte[] generate(org.bukkit.World world, Random random, int x, int z) {
@@ -22,7 +22,7 @@ public class NormalChunkGenerator extends InternalChunkGenerator {
}
public boolean canSpawn(org.bukkit.World world, int x, int z) {
return ((CraftWorld) world).getHandle().worldProvider.a(x, z);
return ((CraftWorld) world).getHandle().worldProvider.canSpawn(x, z);
}
public List<BlockPopulator> getDefaultPopulators(org.bukkit.World world) {
@@ -53,7 +53,7 @@ public class NormalChunkGenerator extends InternalChunkGenerator {
return provider.unloadChunks();
}
public boolean b() {
return provider.b();
public boolean canSave() {
return provider.canSave();
}
}