Class ClimatePoint.Builder

java.lang.Object
dev.wyck.wrapper.worldgen.climate.ClimatePoint.Builder
Enclosing interface:
ClimatePoint

@NullMarked @AsOf("2.3.0") public static final class ClimatePoint.Builder extends Object
Builder for a climate point. Any axis left unset spans the full [-2.0, 2.0] range, so it matches anywhere on that axis.
Since:
2.3.0
  • Constructor Details

    • Builder

      public Builder()
    • Builder

      public Builder(ClimatePoint point)
  • Method Details

    • temperature

      @AsOf("2.3.0") public ClimatePoint.Builder temperature(ClimateParameter temperature)
      Sets the temperature axis span.
      Parameters:
      temperature - the temperature parameter
      Returns:
      this builder, for chaining
      Since:
      2.3.0
    • humidity

      @AsOf("2.3.0") public ClimatePoint.Builder humidity(ClimateParameter humidity)
      Sets the humidity axis span.
      Parameters:
      humidity - the humidity parameter
      Returns:
      this builder, for chaining
      Since:
      2.3.0
    • continentalness

      @AsOf("2.3.0") public ClimatePoint.Builder continentalness(ClimateParameter continentalness)
      Sets the continentalness axis span.
      Parameters:
      continentalness - the continentalness parameter
      Returns:
      this builder, for chaining
      Since:
      2.3.0
    • erosion

      @AsOf("2.3.0") public ClimatePoint.Builder erosion(ClimateParameter erosion)
      Sets the erosion axis span.
      Parameters:
      erosion - the erosion parameter
      Returns:
      this builder, for chaining
      Since:
      2.3.0
    • depth

      @AsOf("2.3.0") public ClimatePoint.Builder depth(ClimateParameter depth)
      Sets the depth axis span.
      Parameters:
      depth - the depth parameter
      Returns:
      this builder, for chaining
      Since:
      2.3.0
    • weirdness

      @AsOf("2.3.0") public ClimatePoint.Builder weirdness(ClimateParameter weirdness)
      Sets the weirdness axis span.
      Parameters:
      weirdness - the weirdness parameter
      Returns:
      this builder, for chaining
      Since:
      2.3.0
    • offset

      @AsOf("2.3.0") public ClimatePoint.Builder offset(float offset)
      Sets the fitness offset between 0.0 and 1.0.
      Parameters:
      offset - the fitness offset
      Returns:
      this builder, for chaining
      Since:
      2.3.0
    • build

      @AsOf("2.3.0") public ClimatePoint build()
      Builds the climate point.
      Returns:
      the climate point
      Since:
      2.3.0