Class HeightProvider
java.lang.Object
net.minecraft.world.level.levelgen.heightproviders.HeightProvider
- Direct Known Subclasses:
BiasedToBottomHeight
,ConstantHeight
,TrapezoidHeight
,UniformHeight
,VeryBiasedToBottomHeight
,WeightedListHeight
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<HeightProvider> private static final com.mojang.serialization.Codec
<com.mojang.datafixers.util.Either<VerticalAnchor, HeightProvider>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract HeightProviderType
<?> getType()
abstract int
sample
(RandomSource p_226302_, WorldGenerationContext p_226303_)
-
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
-