optimized biome streaming to schematics

This commit is contained in:
Jesse Boyd
2019-07-18 22:36:50 +10:00
parent be9430a92f
commit 22a7ad7503
4 changed files with 74 additions and 42 deletions

View File

@ -135,6 +135,16 @@ public final class BiomeTypes {
return BiomeType.REGISTRY.values();
}
public static int getMaxId() {
int maxBiomeId = 0;
for (BiomeType type : BiomeType.REGISTRY.values()) {
if (type.getInternalId() > maxBiomeId) {
maxBiomeId = type.getInternalId();
}
}
return maxBiomeId;
}
static {
OCEAN.setLegacyId(0);
PLAINS.setLegacyId(1);