Class ConstantHeight
java.lang.Object
net.minecraft.world.level.levelgen.heightproviders.HeightProvider
net.minecraft.world.level.levelgen.heightproviders.ConstantHeight
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ConstantHeight> private final VerticalAnchor
static final ConstantHeight
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
getValue()
static ConstantHeight
of
(VerticalAnchor p_161957_) int
sample
(RandomSource p_226300_, WorldGenerationContext p_226301_) toString()
-
Field Details
-
ZERO
-
CODEC
-
value
-
-
Constructor Details
-
ConstantHeight
-
-
Method Details
-
of
-
getValue
-
sample
- Specified by:
sample
in classHeightProvider
-
getType
- Specified by:
getType
in classHeightProvider
-
toString
-