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 pLimit, int pLowerSize, int pUpperSize) TwoLayersFeatureSize(int pLimit, int pLowerSize, int pUpperSize, OptionalInt pMinClippedHeight) -
Method Summary
Modifier and TypeMethodDescriptionintgetSizeAtHeight(int p_68351_, int p_68352_) 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
public TwoLayersFeatureSize(int pLimit, int pLowerSize, int pUpperSize, OptionalInt pMinClippedHeight)
-
-
Method Details
-
type
- Specified by:
typein classFeatureSize
-
getSizeAtHeight
public int getSizeAtHeight(int p_68351_, int p_68352_) - Specified by:
getSizeAtHeightin classFeatureSize
-