Class NoiseProvider
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.NoiseProvider
- Direct Known Subclasses:
DualNoiseProvider
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NoiseProvider>
protected final List<BlockState>
Fields inherited from class net.minecraft.world.level.levelgen.feature.stateproviders.NoiseBasedStateProvider
noise, parameters, scale, seed
-
Constructor Summary
ConstructorDescriptionNoiseProvider
(long p_191442_, NormalNoise.NoiseParameters p_191443_, float p_191444_, List<BlockState> p_191445_) -
Method Summary
Modifier and TypeMethodDescriptionprotected BlockState
getRandomState
(List<BlockState> p_191450_, double p_191451_) protected BlockState
getRandomState
(List<BlockState> p_191453_, BlockPos p_191454_, double p_191455_) protected static <P extends NoiseProvider>
com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Long, NormalNoise.NoiseParameters, Float, List<BlockState>> noiseProviderCodec
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> p_191460_) 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
-
states
-
-
Constructor Details
-
NoiseProvider
public NoiseProvider(long p_191442_, NormalNoise.NoiseParameters p_191443_, float p_191444_, List<BlockState> p_191445_)
-
-
Method Details
-
noiseProviderCodec
protected static <P extends NoiseProvider> com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Long, noiseProviderCodecNormalNoise.NoiseParameters, Float, List<BlockState>> (com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> p_191460_) -
type
- Specified by:
type
in classBlockStateProvider
-
getState
- Specified by:
getState
in classBlockStateProvider
-
getRandomState
protected BlockState getRandomState(List<BlockState> p_191453_, BlockPos p_191454_, double p_191455_) -
getRandomState
-