Class NoiseThresholdProvider.Builder
java.lang.Object
dev.wyck.worldgen.stateproviders.NoiseBasedProvider.AbstractNoiseProviderBuilder<NoiseThresholdProvider.Builder, NoiseThresholdProvider>
dev.wyck.worldgen.stateproviders.NoiseThresholdProvider.Builder
- Enclosing interface:
NoiseThresholdProvider
@AsOf("3.0.0")
public static final class NoiseThresholdProvider.Builder
extends NoiseBasedProvider.AbstractNoiseProviderBuilder<NoiseThresholdProvider.Builder, NoiseThresholdProvider>
A builder for
NoiseThresholdProvider.- Since:
- 3.0.0
-
Field Summary
Fields inherited from class NoiseBasedProvider.AbstractNoiseProviderBuilder
parameters, scale, seed -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NoiseThresholdProvidercreate()defaultState(BlockData defaultState) Sets the default block state.highChance(float highChance) Sets the high chance.Adds a high-threshold block state.highStates(List<BlockData> highStates) Sets the high-threshold block states.Adds a low-threshold block state.Sets the low-threshold block states.threshold(float threshold) Sets the threshold of the noise value.Methods inherited from class NoiseBasedProvider.AbstractNoiseProviderBuilder
build, parameters, scale, seed
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
threshold
Sets the threshold of the noise value.- Parameters:
threshold- the threshold of the noise value- Returns:
- this builder
- Since:
- 3.0.0
-
highChance
Sets the high chance.- Parameters:
highChance- the high chance- Returns:
- this builder
- Since:
- 3.0.0
-
defaultState
Sets the default block state.- Parameters:
defaultState- the default block state- Returns:
- this builder
- Since:
- 3.0.0
-
lowStates
Sets the low-threshold block states.- Parameters:
lowStates- the low-threshold block states- Returns:
- this builder
- Since:
- 3.0.0
-
highStates
Sets the high-threshold block states.- Parameters:
highStates- the high-threshold block states- Returns:
- this builder
- Since:
- 3.0.0
-
lowState
Adds a low-threshold block state.- Parameters:
lowStates- the low-threshold block state- Returns:
- this builder
- Since:
- 3.0.0
-
highState
Adds a high-threshold block state.- Parameters:
highStates- the high-threshold block state- Returns:
- this builder
- Since:
- 3.0.0
-
create
- Specified by:
createin classNoiseBasedProvider.AbstractNoiseProviderBuilder<NoiseThresholdProvider.Builder, NoiseThresholdProvider>
-