Class TrapezoidHeight
java.lang.Object
net.minecraft.world.level.levelgen.heightproviders.HeightProvider
net.minecraft.world.level.levelgen.heightproviders.TrapezoidHeight
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TrapezoidHeight> private static final org.slf4j.Loggerprivate final VerticalAnchorprivate final VerticalAnchorprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTrapezoidHeight(VerticalAnchor pMinInclusive, VerticalAnchor pMaxInclusive, int pPlateau) -
Method Summary
Modifier and TypeMethodDescriptiongetType()static TrapezoidHeightof(VerticalAnchor pMinInclusive, VerticalAnchor pMaxInclusive) static TrapezoidHeightof(VerticalAnchor pMinInclusive, VerticalAnchor pMaxInclusive, int pPlateau) intsample(RandomSource p_226305_, WorldGenerationContext p_226306_) toString()
-
Field Details
-
CODEC
-
LOGGER
private static final org.slf4j.Logger LOGGER -
minInclusive
-
maxInclusive
-
plateau
private final int plateau
-
-
Constructor Details
-
TrapezoidHeight
-
-
Method Details
-
of
public static TrapezoidHeight of(VerticalAnchor pMinInclusive, VerticalAnchor pMaxInclusive, int pPlateau) -
of
-
sample
- Specified by:
samplein classHeightProvider
-
getType
- Specified by:
getTypein classHeightProvider
-
toString
-