Class FeatureSize
java.lang.Object
net.minecraft.world.gen.feature.size.FeatureSize
- Direct Known Subclasses:
ThreeLayersFeatureSize,TwoLayersFeatureSize
public abstract class FeatureSize extends Object
In charge of determining the amount of space needed by a tree to generate.
-
Field Summary
Fields Modifier and Type Field Description protected OptionalIntminClippedHeightstatic com.mojang.serialization.Codec<FeatureSize>TYPE_CODEC -
Constructor Summary
Constructors Constructor Description FeatureSize(OptionalInt minClippedHeight) -
Method Summary
Modifier and Type Method Description protected static <S extends FeatureSize>
com.mojang.serialization.codecs.RecordCodecBuilder<S,OptionalInt>createCodec()OptionalIntgetMinClippedHeight()abstract intgetRadius(int height, int y)The radius that the tree needs to be empty or replaceable in order for it to generate.protected abstract FeatureSizeType<?>getType()
-
Field Details
-
TYPE_CODEC
-
minClippedHeight
-
-
Constructor Details
-
FeatureSize
-
-
Method Details
-
createCodec
protected static <S extends FeatureSize> com.mojang.serialization.codecs.RecordCodecBuilder<S,OptionalInt> createCodec() -
getType
-
getRadius
public abstract int getRadius(int height, int y)The radius that the tree needs to be empty or replaceable in order for it to generate. -
getMinClippedHeight
-