Class ThreeLayersFeatureSize
java.lang.Object
net.minecraft.world.gen.feature.size.FeatureSize
net.minecraft.world.gen.feature.size.ThreeLayersFeatureSize
public class ThreeLayersFeatureSize extends FeatureSize
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<ThreeLayersFeatureSize>CODECprivate intlimitprivate intlowerSizeprivate intmiddleSizeprivate intupperLimitprivate intupperSizeFields inherited from class net.minecraft.world.gen.feature.size.FeatureSize
minClippedHeight, TYPE_CODEC -
Constructor Summary
Constructors Constructor Description ThreeLayersFeatureSize(int limit, int upperLimit, int lowerSize, int middleSize, int upperSize, OptionalInt minClippedHeight) -
Method Summary
Modifier and Type Method Description intgetRadius(int height, int y)The radius that the tree needs to be empty or replaceable in order for it to generate.protected FeatureSizeType<?>getType()Methods inherited from class net.minecraft.world.gen.feature.size.FeatureSize
createCodec, getMinClippedHeight
-
Field Details
-
CODEC
-
limit
private final int limit -
upperLimit
private final int upperLimit -
lowerSize
private final int lowerSize -
middleSize
private final int middleSize -
upperSize
private final int upperSize
-
-
Constructor Details
-
ThreeLayersFeatureSize
public ThreeLayersFeatureSize(int limit, int upperLimit, int lowerSize, int middleSize, int upperSize, OptionalInt minClippedHeight)
-
-
Method Details
-
getType
- Specified by:
getTypein classFeatureSize
-
getRadius
public int getRadius(int height, int y)The radius that the tree needs to be empty or replaceable in order for it to generate.- Specified by:
getRadiusin classFeatureSize
-