Generic cleanup of the org.bukkit.craftbukkit classes.

This commit is contained in:
Erik Broes
2011-06-12 01:12:43 +02:00
parent b042f48b24
commit 9adc03abab
34 changed files with 160 additions and 145 deletions

View File

@@ -17,7 +17,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
private final Random random;
public CustomChunkGenerator(World world, long seed, ChunkGenerator generator) {
this.world = (WorldServer)world;
this.world = (WorldServer) world;
this.seed = seed;
this.generator = generator;
@@ -29,7 +29,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
}
public Chunk getOrCreateChunk(int x, int z) {
random.setSeed((long)x * 341873128712L + (long)z * 132897987541L);
random.setSeed((long) x * 341873128712L + (long) z * 132897987541L);
byte[] types = generator.generate(world.getWorld(), random, x, z);
Chunk chunk = new Chunk(world, types, x, z);

View File

@@ -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.a(x, z);
}
public List<BlockPopulator> getDefaultPopulators(org.bukkit.World world) {