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 BlockStateprivate final floatprivate final List<BlockState> private final List<BlockState> private final floatFields 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, noiseCodecMethods 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:
typein classBlockStateProvider
-
getState
- Specified by:
getStatein classBlockStateProvider
-