CompatibleBiome updates.

This commit is contained in:
Brianna 2020-03-27 16:45:42 -04:00
parent 46c134b453
commit f91a8eb764

View File

@ -122,6 +122,13 @@ public enum CompatibleBiome {
return new LinkedList<>(versions); return new LinkedList<>(versions);
} }
public Biome getBiome() {
for (Version version : versions)
if (ServerVersion.isServerVersionAtLeast(version.version))
return Biome.valueOf(version.biome);
return null;
}
public static CompatibleBiome getBiome(Biome biome) { public static CompatibleBiome getBiome(Biome biome) {
return biome == null ? null : lookupMap.get(biome.name()); return biome == null ? null : lookupMap.get(biome.name());
} }