Options
All
  • Public
  • Public/Protected
  • All
Menu

Module containing methods to access properties of any registered biome, and some new useful features for modded biomes

since

5.0

Index

Functions

  • 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.
    since

    5.0

    Parameters

    Returns void

  • 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" ```

    since

    5.0

    Parameters

    Returns void

Generated using TypeDoc