Class NoiseThresholdProvider
java.lang.Object
net.minecraft.world.level.levelgen.feature.stateproviders.NoiseBasedStateProvider
net.minecraft.world.level.levelgen.feature.stateproviders.NoiseThresholdProvider
- All Implemented Interfaces:
BlockStateProvider
-
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 NoiseBasedStateProvider
noise, parameters, scale, seedFields inherited from interface BlockStateProvider
DIRECT_CODEC, STATE_OR_PROVIDER_CODEC, TYPED_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionNoiseThresholdProvider(long seed, NormalNoise parameters, float scale, float threshold, float highChance, BlockState defaultState, List<BlockState> lowStates, List<BlockState> highStates) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<NoiseThresholdProvider> codec()getState(LevelAccessor level, RandomSource random, BlockPos pos) Methods inherited from class NoiseBasedStateProvider
getNoiseValue, noiseCodecMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BlockStateProvider
getOptionalState
-
Field Details
-
CODEC
-
threshold
private final float threshold -
highChance
private final float highChance -
defaultState
-
lowStates
-
highStates
-
-
Constructor Details
-
NoiseThresholdProvider
public NoiseThresholdProvider(long seed, NormalNoise parameters, float scale, float threshold, float highChance, BlockState defaultState, List<BlockState> lowStates, List<BlockState> highStates)
-
-
Method Details
-
codec
- Specified by:
codecin interfaceBlockStateProvider- Specified by:
codecin classNoiseBasedStateProvider
-
getState
-