Interface DualNoiseProvider

All Superinterfaces:
BlockStateProvider, NoiseBasedProvider, Wrapper

@NullMarked @AsOf("3.0.0") public interface DualNoiseProvider extends NoiseBasedProvider
Randomly chooses a block state according to two noise values.
Since:
3.0.0
See Also:
  • Method Details

    • variety

      @AsOf("3.0.0") InclusiveRange<Integer> variety()
      The number of block states that selected out by slow noise.
      Returns:
      the variety of the noise
      Since:
      3.0.0
    • slowNoise

      @AsOf("3.0.0") NoiseParameters slowNoise()
      The noise used for the first selection.
      Returns:
      the parameters of the noise
      Since:
      3.0.0
    • slowScale

      @AsOf("3.0.0") float slowScale()
      Horizontal scale of the slow noise. Must be a positive value.
      Returns:
      the scale of the slow noise
      Since:
      3.0.0
    • states

      @AsOf("3.0.0") List<BlockData> states()
      The list of block states. This cannot be empty.
      Returns:
      the list of block states
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default DualNoiseProvider.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static DualNoiseProvider of(long seed, NoiseParameters parameters, float scale, InclusiveRange<Integer> variety, NoiseParameters slowNoiseParameters, float slowScale, List<BlockData> states)
      Creates a new dual-noise provider.
      Parameters:
      seed - the seed of the noise
      parameters - the parameters of the noise
      scale - the scale of the noise
      variety - the variety of the noise
      slowNoiseParameters - the parameters of the slow noise
      slowScale - the scale of the slow noise
      states - the list of block states
      Returns:
      a new dual-noise provider
      Since:
      3.0.0
    • builder

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