Iterates through list of all registered biomes and calls the given function for each of them.
Throws java.lang.IllegalStateException if called before biomes initialized.
Create a handler for "BiomesInitialized"
callback to avoid this.
BiomeInterface instance for the biome with given numeric identifier,
or null if the biome with this ID cannot be found.
Throws java.lang.IllegalStateException if called before biomes initialized.
Create a handler for "BiomesInitialized"
callback to avoid this.
BiomeInterface instance for the biome with given string identifier,
or null if the biome with this name ID cannot be found.
Throws java.lang.IllegalStateException if called before biomes initialized.
Create a handler for "BiomesInitialized"
callback to avoid this.
Specifies the custom translation key for the name of the custom biome with given string identifier. This key will then be returned by BiomeInterface.getModName method. Example:
KEX.BiomesModule.setBiomeTranslationKey("aether_plains", "aether.biome.plains");
// translations for "aether.biome.plains" key are added in the lang files
const key = KEX.BiomesModule.getBiomeByName("aether_plains").getTranslationKey();
KEX.I18n.translate(key); // => "Равнины Рая"
However, you can just add translations for the key `"biome.innercore.your_biome_nameid"`
and it will work without using the following method.
Specifies the name of the mod adding the custom biome with given string identifier.
This name will then be returned by BiomeInterface.getModName method instead of defaulting to "InnerCore"
.
Example:
KEX.BiomesModule.setModNameForBiome("aether_plains", "Aether");
KEX.BiomesModule.getBiomeByName("aether_plains").getModName(); // => "Aether" ```
Generated using TypeDoc
Module containing methods to access properties of any registered biome, and some new useful features for modded biomes
5.0