Interface DualNoiseProvider
- All Superinterfaces:
BlockStateProvider, NoiseBasedProvider, Wrapper
Randomly chooses a block state according to two noise values.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface NoiseBasedProvider
NoiseBasedProvider.AbstractNoiseProviderBuilder<B,T> -
Method Summary
Modifier and TypeMethodDescriptionstatic DualNoiseProvider.Builderbuilder()Creates a new builder.static DualNoiseProviderof(long seed, NoiseParameters parameters, float scale, InclusiveRange<Integer> variety, NoiseParameters slowNoiseParameters, float slowScale, List<BlockData> states) Creates a new dual-noise provider.The noise used for the first selection.floatHorizontal scale of the slow noise.states()The list of block states.default DualNoiseProvider.BuilderConverts this object back to a builder.variety()The number of block states that selected out by slow noise.Methods inherited from interface NoiseBasedProvider
noise, scale, seedMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
variety
The number of block states that selected out by slow noise.- Returns:
- the variety of the noise
- Since:
- 3.0.0
-
slowNoise
The noise used for the first selection.- Returns:
- the parameters of the noise
- Since:
- 3.0.0
-
slowScale
Horizontal scale of the slow noise. Must be a positive value.- Returns:
- the scale of the slow noise
- Since:
- 3.0.0
-
states
-
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 noiseparameters- the parameters of the noisescale- the scale of the noisevariety- the variety of the noiseslowNoiseParameters- the parameters of the slow noiseslowScale- the scale of the slow noisestates- the list of block states- Returns:
- a new dual-noise provider
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-