Class HeightProvider
java.lang.Object
net.minecraft.world.level.levelgen.heightproviders.HeightProvider
- Direct Known Subclasses:
BiasedToBottomHeight
,ConstantHeight
,TrapezoidHeight
,UniformHeight
,VeryBiasedToBottomHeight
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<HeightProvider>
private static com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<VerticalAnchor,HeightProvider>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract HeightProviderType<?>
getType()
abstract int
sample(Random p_161977_, WorldGenerationContext p_161978_)
-
Field Details
-
CONSTANT_OR_DISPATCH_CODEC
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<VerticalAnchor,HeightProvider>> CONSTANT_OR_DISPATCH_CODEC -
CODEC
-
-
Constructor Details
-
HeightProvider
public HeightProvider()
-
-
Method Details
-
sample
-
getType
-