Module gomint.api

Enum Biome

    • Enum Constant Detail

      • OCEAN

        public static final Biome OCEAN
      • PLAINS

        public static final Biome PLAINS
      • DESERT

        public static final Biome DESERT
      • EXTREME_HILLS

        public static final Biome EXTREME_HILLS
      • FOREST

        public static final Biome FOREST
      • TAIGA

        public static final Biome TAIGA
      • SWAMPLAND

        public static final Biome SWAMPLAND
      • RIVER

        public static final Biome RIVER
      • NETHER

        public static final Biome NETHER
      • END

        public static final Biome END
      • FROZEN_OCEAN

        public static final Biome FROZEN_OCEAN
      • FROZEN_RIVER

        public static final Biome FROZEN_RIVER
      • ICE_PLAINS

        public static final Biome ICE_PLAINS
      • ICE_MOUNTAINS

        public static final Biome ICE_MOUNTAINS
      • MUSHROOM_ISLAND

        public static final Biome MUSHROOM_ISLAND
      • MUSHROOM_ISLAND_SHORE

        public static final Biome MUSHROOM_ISLAND_SHORE
      • BEACH

        public static final Biome BEACH
      • DESERT_HILLS

        public static final Biome DESERT_HILLS
      • FOREST_HILLS

        public static final Biome FOREST_HILLS
      • TAIGA_HILLS

        public static final Biome TAIGA_HILLS
      • EXTREME_HILLS_EDGE

        public static final Biome EXTREME_HILLS_EDGE
      • JUNGLE

        public static final Biome JUNGLE
      • JUNGLE_HILLS

        public static final Biome JUNGLE_HILLS
      • JUNGLE_EDGE

        public static final Biome JUNGLE_EDGE
      • DEEP_OCEAN

        public static final Biome DEEP_OCEAN
      • STONE_BEACH

        public static final Biome STONE_BEACH
      • COLD_BEACH

        public static final Biome COLD_BEACH
      • BIRCH_FOREST

        public static final Biome BIRCH_FOREST
      • BIRCH_FOREST_HILLS

        public static final Biome BIRCH_FOREST_HILLS
      • ROOFED_FOREST

        public static final Biome ROOFED_FOREST
      • COlD_TAIGA

        public static final Biome COlD_TAIGA
      • COLD_TAIGA_HILLS

        public static final Biome COLD_TAIGA_HILLS
      • MEGA_TAIGA

        public static final Biome MEGA_TAIGA
      • MEGA_TAIGA_HILLS

        public static final Biome MEGA_TAIGA_HILLS
      • EXTREME_HILLS_PLUS

        public static final Biome EXTREME_HILLS_PLUS
      • SAVANNA

        public static final Biome SAVANNA
      • SAVANNA_PLATEAU

        public static final Biome SAVANNA_PLATEAU
      • MESA

        public static final Biome MESA
      • MESA_PLATEAU_F

        public static final Biome MESA_PLATEAU_F
      • MESA_PLATEAU

        public static final Biome MESA_PLATEAU
      • THE_VOID

        public static final Biome THE_VOID
      • UNKNOWN_1

        public static final Biome UNKNOWN_1
      • SUNFLOWER_PLAINS

        public static final Biome SUNFLOWER_PLAINS
      • DESERT_M

        public static final Biome DESERT_M
      • EXTREME_HILLS_M

        public static final Biome EXTREME_HILLS_M
      • FLOWER_FOREST

        public static final Biome FLOWER_FOREST
      • TAIGA_M

        public static final Biome TAIGA_M
      • SWAMPLAND_M

        public static final Biome SWAMPLAND_M
      • ICE_PLAINS_SPIKES

        public static final Biome ICE_PLAINS_SPIKES
      • JUNGLE_M

        public static final Biome JUNGLE_M
      • UNKNOWN_2

        public static final Biome UNKNOWN_2
      • JUNGLE_EDGE_M

        public static final Biome JUNGLE_EDGE_M
      • BIRCH_FOREST_M

        public static final Biome BIRCH_FOREST_M
      • BIRCH_FOREST_HILLS_M

        public static final Biome BIRCH_FOREST_HILLS_M
      • ROOFED_FOREST_M

        public static final Biome ROOFED_FOREST_M
      • COLD_TAIGA_M

        public static final Biome COLD_TAIGA_M
      • MEGA_SPRUCE_TAIGA

        public static final Biome MEGA_SPRUCE_TAIGA
      • MEGA_SPRUCE_TAIGA_HILLS

        public static final Biome MEGA_SPRUCE_TAIGA_HILLS
      • EXTREME_HILLS_PLUS_M

        public static final Biome EXTREME_HILLS_PLUS_M
      • SAVANNA_M

        public static final Biome SAVANNA_M
      • SAVANNA_PLATEAU_M

        public static final Biome SAVANNA_PLATEAU_M
      • MESA_BRYCE

        public static final Biome MESA_BRYCE
      • MESA_PLATEAU_F_M

        public static final Biome MESA_PLATEAU_F_M
      • MESA_PLATEAU_M

        public static final Biome MESA_PLATEAU_M
    • Method Detail

      • values

        public static Biome[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Biome c : Biome.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Biome valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getBiomeById

        public static Biome getBiomeById​(int id)
        Attempts to get a biome given its id.
        Parameters:
        id - The ID of the biome
        Returns:
        The biome if found or null otherwise
      • getId

        public int getId()
        Gets the unique ID of the biome.
        Returns:
        The biome's unique ID
      • getName

        public String getName()
        Gets the name of the biome.
        Returns:
        The biome's name
      • getTemperature

        public double getTemperature()
        Gets the biome's temperature.
        Returns:
        The biome's temperature
      • getDownfall

        public double getDownfall()
        Gets the biome's downfall rate.
        Returns:
        The biome's downfall rate
      • getColorRGB

        public int getColorRGB​(boolean grass,
                               int height)
        Gets a biome's RGB color given the height of a block.

        A biome's color is calculated using a linearly interpolating image called grass.png or foliage.png depending on whether the color is to be applied on grass or other things such as leaves. The coordinates to be used on that image are calculated by taking into account the temperature and the downfall rate. The temperature decreases naturally by 0.00166667 every meter above the water level (=64). The downfall value then gets multiplied by the temperature. Afterwards the temperature will resemble the U-coordinate, the downfall value will resemble the V-coordinate.

        Parameters:
        grass - Whether or not the color is to be applied on grass or not (foliage if set to false)
        height - The height of the block to get the biome's color for
        Returns:
        An integer encoding the biome color
      • getMinElevation

        public int getMinElevation()
      • getMaxElevation

        public int getMaxElevation()