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 int
private final int
private final int
Fields inherited from class net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize
MAX_WIDTH, minClippedHeight
-
Constructor Summary
ConstructorsConstructorDescriptionTwoLayersFeatureSize
(int pLimit, int pLowerSize, int pUpperSize) TwoLayersFeatureSize
(int pLimit, int pLowerSize, int pUpperSize, OptionalInt p_68349_) -
Method Summary
Modifier and TypeMethodDescriptionint
getSizeAtHeight
(int pHeight, int pMidpoint) 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 pLimit, int pLowerSize, int pUpperSize) -
TwoLayersFeatureSize
-
-
Method Details
-
type
- Specified by:
type
in classFeatureSize
-
getSizeAtHeight
public int getSizeAtHeight(int pHeight, int pMidpoint) - Specified by:
getSizeAtHeight
in classFeatureSize
-