Class TwoLayersFeatureSize
java.lang.Object
net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize
net.minecraft.world.level.levelgen.feature.featuresize.TwoLayersFeatureSize
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TwoLayersFeatureSize> private final intprivate final intprivate final intFields inherited from class net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize
MAX_WIDTH, minClippedHeight -
Constructor Summary
ConstructorsConstructorDescriptionTwoLayersFeatureSize(int limit, int lowerSize, int upperSize) TwoLayersFeatureSize(int limit, int lowerSize, int upperSize, OptionalInt minClippedHeight) -
Method Summary
Modifier and TypeMethodDescriptionintgetSizeAtHeight(int height, int midpoint) protected FeatureSizeType<?> type()Methods inherited from class net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize
minClippedHeight, minClippedHeightCodec
-
Field Details
-
CODEC
-
limit
private final int limit -
lowerSize
private final int lowerSize -
upperSize
private final int upperSize
-
-
Constructor Details
-
TwoLayersFeatureSize
public TwoLayersFeatureSize(int limit, int lowerSize, int upperSize) -
TwoLayersFeatureSize
-
-
Method Details
-
type
- Specified by:
typein classFeatureSize
-
getSizeAtHeight
public int getSizeAtHeight(int height, int midpoint) - Specified by:
getSizeAtHeightin classFeatureSize
-