Update to mc-dev rename revision 01
This commit is contained in:
@@ -78,19 +78,19 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
|
||||
return generator.getDefaultPopulators(world);
|
||||
}
|
||||
|
||||
public List a(EnumCreatureType type, int x, int y, int z) {
|
||||
public List getMobsFor(EnumCreatureType type, int x, int y, int z) {
|
||||
WorldChunkManager worldchunkmanager = world.getWorldChunkManager();
|
||||
|
||||
if (worldchunkmanager == null) {
|
||||
return null;
|
||||
} else {
|
||||
BiomeBase biomebase = worldchunkmanager.a(new ChunkCoordIntPair(x >> 4, z >> 4));
|
||||
BiomeBase biomebase = worldchunkmanager.getBiome(new ChunkCoordIntPair(x >> 4, z >> 4));
|
||||
|
||||
return biomebase == null ? null : biomebase.a(type);
|
||||
return biomebase == null ? null : biomebase.getMobs(type);
|
||||
}
|
||||
}
|
||||
|
||||
public ChunkPosition a(World world, String type, int x, int y, int z) {
|
||||
return "Stronghold".equals(type) && this.strongholdGen != null ? this.strongholdGen.a(world, x, y, z) : null;
|
||||
public ChunkPosition findNearestMapFeature(World world, String type, int x, int y, int z) {
|
||||
return "Stronghold".equals(type) && this.strongholdGen != null ? this.strongholdGen.getNearestGeneratedFeature(world, x, y, z) : null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,11 +59,11 @@ public class NormalChunkGenerator extends InternalChunkGenerator {
|
||||
return provider.canSave();
|
||||
}
|
||||
|
||||
public List a(EnumCreatureType ect, int i, int i1, int i2) {
|
||||
return provider.a(ect, i, i1, i2);
|
||||
public List getMobsFor(EnumCreatureType ect, int i, int i1, int i2) {
|
||||
return provider.getMobsFor(ect, i, i1, i2);
|
||||
}
|
||||
|
||||
public ChunkPosition a(World world, String string, int i, int i1, int i2) {
|
||||
return provider.a(world, string, i, i1, i2);
|
||||
public ChunkPosition findNearestMapFeature(World world, String string, int i, int i1, int i2) {
|
||||
return provider.findNearestMapFeature(world, string, i, i1, i2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user