Interface ClimateSettings

All Superinterfaces:
Wrapper

@NullMarked @AsOf("3.0.0") public interface ClimateSettings extends Wrapper
Represents the climate settings of a biome.
Since:
3.0.0
  • Field Details

  • Method Details

    • hasPrecipitation

      @AsOf("3.0.0") boolean hasPrecipitation()
      Whether the biome has precipitation.
      Returns:
      whether the biome has precipitation
      Since:
      3.0.0
    • temperature

      @AsOf("3.0.0") float temperature()
      The temperature of the biome. Anything less than 0.14 will cause snow to appear instead of rain.
      Returns:
      the temperature of the biome
      Since:
      3.0.0
    • temperatureModifier

      @AsOf("3.0.0") TemperatureModifier temperatureModifier()
      The temperature modifier of the biome.
      Returns:
      the temperature modifier of the biome
      Since:
      3.0.0
    • downfall

      @AsOf("3.0.0") float downfall()
      The downfall of the biome.
      Returns:
      the downfall of the biome
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default ClimateSettings.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a new ClimateSettings builder from this instance
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ClimateSettings of(boolean hasPrecipitation, float temperature, TemperatureModifier temperatureModifier, float downfall)
      Creates a new ClimateSettings instance.
      Parameters:
      hasPrecipitation - whether the biome has precipitation
      temperature - the temperature of the biome
      temperatureModifier - the temperature modifier of the biome
      downfall - the downfall of the biome
      Returns:
      a new ClimateSettings instance
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static ClimateSettings.Builder builder()
      Creates a new ClimateSettings builder.
      Returns:
      a new ClimateSettings builder
      Since:
      3.0.0