Class TwoLayersFeatureSize
java.lang.Object
net.minecraft.world.gen.feature.size.FeatureSize
net.minecraft.world.gen.feature.size.TwoLayersFeatureSize
public class TwoLayersFeatureSize extends FeatureSize
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<TwoLayersFeatureSize>CODECprivate intlimitprivate intlowerSizeprivate intupperSizeFields inherited from class net.minecraft.world.gen.feature.size.FeatureSize
minClippedHeight, TYPE_CODEC -
Constructor Summary
Constructors Constructor Description TwoLayersFeatureSize(int limit, int lowerSize, int upperSize)TwoLayersFeatureSize(int limit, int lowerSize, 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 -
lowerSize
private final int lowerSize -
upperSize
private final int upperSize
-
-
Constructor Details
-
TwoLayersFeatureSize
public TwoLayersFeatureSize(int limit, int lowerSize, int upperSize) -
TwoLayersFeatureSize
-
-
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
-