Class NoiseThresholdProvider
java.lang.Object
net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
net.minecraft.world.level.levelgen.feature.stateproviders.NoiseBasedStateProvider
net.minecraft.world.level.levelgen.feature.stateproviders.NoiseThresholdProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<NoiseThresholdProvider> private final BlockState
private final float
private final List
<BlockState> private final List
<BlockState> private final float
Fields inherited from class net.minecraft.world.level.levelgen.feature.stateproviders.NoiseBasedStateProvider
noise, parameters, scale, seed
-
Constructor Summary
ConstructorsConstructorDescriptionNoiseThresholdProvider
(long pSeed, NormalNoise.NoiseParameters pParameters, float pScale, float pThreshold, float pHighChance, BlockState pDefaultState, List<BlockState> pLowStates, List<BlockState> pHighStates) -
Method Summary
Modifier and TypeMethodDescriptiongetState
(RandomSource p_225916_, BlockPos p_225917_) protected BlockStateProviderType
<?> type()
Methods inherited from class net.minecraft.world.level.levelgen.feature.stateproviders.NoiseBasedStateProvider
getNoiseValue, noiseCodec
Methods inherited from class net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
simple, simple
-
Field Details
-
CODEC
-
threshold
private final float threshold -
highChance
private final float highChance -
defaultState
-
lowStates
-
highStates
-
-
Constructor Details
-
NoiseThresholdProvider
public NoiseThresholdProvider(long pSeed, NormalNoise.NoiseParameters pParameters, float pScale, float pThreshold, float pHighChance, BlockState pDefaultState, List<BlockState> pLowStates, List<BlockState> pHighStates)
-
-
Method Details
-
type
- Specified by:
type
in classBlockStateProvider
-
getState
- Specified by:
getState
in classBlockStateProvider
-