Class TwoLayersFeatureSize
java.lang.Object
net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize
net.minecraft.world.level.levelgen.feature.featuresize.TwoLayersFeatureSize
-
Field Summary
Modifier 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
ConstructorDescriptionTwoLayersFeatureSize
(int p_68342_, int p_68343_, int p_68344_) TwoLayersFeatureSize
(int p_68346_, int p_68347_, int p_68348_, OptionalInt p_68349_) -
Method Summary
Modifier and TypeMethodDescriptionint
getSizeAtHeight
(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 p_68342_, int p_68343_, int p_68344_) -
TwoLayersFeatureSize
-
-
Method Details
-
type
- Specified by:
type
in classFeatureSize
-
getSizeAtHeight
public int getSizeAtHeight(int p_68351_, int p_68352_) - Specified by:
getSizeAtHeight
in classFeatureSize
-