Class NoiseFunction.AbstractBuilder<B extends NoiseFunction.AbstractBuilder<B>>

java.lang.Object
dev.wyck.worldgen.function.noise.NoiseFunction.AbstractBuilder<B>
Type Parameters:
B - the concrete builder subtype
Direct Known Subclasses:
MappedNoiseFunction.Builder, NoiseFunction.Builder
Enclosing interface:
NoiseFunction

@AsOf("3.0.0") public abstract static class NoiseFunction.AbstractBuilder<B extends NoiseFunction.AbstractBuilder<B>> extends Object
The shared base for NoiseFunction builders.
Since:
3.0.0
  • Field Details

  • Constructor Details

    • AbstractBuilder

      protected AbstractBuilder()
    • AbstractBuilder

      protected AbstractBuilder(NoiseFunction function)
  • Method Details

    • self

      protected B self()
    • resourceKey

      @AsOf("3.0.0") public B resourceKey(ResourceKey resourceKey)
      Sets the resource key.
      Parameters:
      resourceKey - the resource key
      Returns:
      this builder
      Since:
      3.0.0
    • noiseParameters

      @AsOf("3.0.0") public B noiseParameters(NoiseParameters noiseParameters)
      Sets the parameters of the noise.
      Parameters:
      noiseParameters - the parameters of the noise
      Returns:
      this builder
      Since:
      3.0.0
    • xzScale

      @AsOf("3.0.0") public B xzScale(double xzScale)
      Sets the xz scale of the noise function.
      Parameters:
      xzScale - the xz scale of the noise function
      Returns:
      this builder
      Since:
      3.0.0
    • yScale

      @AsOf("3.0.0") public B yScale(double yScale)
      Sets the y scale of the noise function.
      Parameters:
      yScale - the y scale of the noise function
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public abstract NoiseFunction build()
      Builds the noise function.
      Returns:
      the noise function
      Since:
      3.0.0