Class BiomeSettings.Builder

java.lang.Object
dev.wyck.wrapper.BiomeSettings.Builder
Enclosing class:
BiomeSettings

@AsOf("0.0.8") public static final class BiomeSettings.Builder extends Object
This is a nested Builder class for creating instances of BiomeSettings. It uses the Builder pattern, where you call a chain of methods to set the properties, and then call build() to create the object.
Since:
0.0.1
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • depth

      @AsOf("0.0.1") public BiomeSettings.Builder depth(float depth)
      This method sets the depth property of the BiomeSettings.
      Parameters:
      depth - The depth of the biome.
      Returns:
      The Builder object, for chaining method calls.
      Since:
      0.0.1
    • scale

      @AsOf("0.0.1") public BiomeSettings.Builder scale(float scale)
      This method sets the scale property of the BiomeSettings.
      Parameters:
      scale - The scale of the biome.
      Returns:
      The Builder object, for chaining method calls.
      Since:
      0.0.1
    • temperature

      @AsOf("0.0.1") public BiomeSettings.Builder temperature(float temperature)
      This method sets the temperature property of the BiomeSettings.
      Parameters:
      temperature - The temperature of the biome.
      Returns:
      The Builder object, for chaining method calls.
      Since:
      0.0.1
    • downfall

      @AsOf("0.0.1") public BiomeSettings.Builder downfall(float downfall)
      This method sets the downfall property of the BiomeSettings.
      Parameters:
      downfall - The downfall of the biome.
      Returns:
      The Builder object, for chaining method calls.
      Since:
      0.0.1
    • modifier

      @AsOf("0.0.8") public BiomeSettings.Builder modifier(TemperatureModifier modifier)
      This method sets the temperature modifier property of the BiomeSettings.
      Parameters:
      modifier - The temperature modifier of the biome.
      Returns:
      The Builder object, for chaining method calls.
      Since:
      0.0.1
    • hasPrecipitation

      @AsOf("0.0.8") public BiomeSettings.Builder hasPrecipitation(boolean hasPrecipitation)
      This method sets whether the biome has precipitation.
      Parameters:
      hasPrecipitation - Whether the biome has precipitation.
      Returns:
      The Builder object, for chaining method calls.
      Since:
      0.0.8
    • build

      @AsOf("0.0.1") public BiomeSettings build()
      This method creates a new BiomeSettings object with the properties set in the Builder.
      Returns:
      a new BiomeSettings object.
      Since:
      0.0.1