mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 02:46:41 +00:00
optimized biome streaming to schematics
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user