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.
- Mappings:
Namespace Name official csp
intermediary net/minecraft/class_5201
named net/minecraft/world/gen/feature/size/FeatureSize
-
Field Summary
Fields Modifier and Type Field Description protected OptionalInt
minClippedHeight
static 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()
OptionalInt
getMinClippedHeight()
abstract int
getRadius(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
- Mappings:
Namespace Name Mixin selector official a
Lcsp;a:Lcom/mojang/serialization/Codec;
intermediary field_24922
Lnet/minecraft/class_5201;field_24922:Lcom/mojang/serialization/Codec;
named TYPE_CODEC
Lnet/minecraft/world/gen/feature/size/FeatureSize;TYPE_CODEC:Lcom/mojang/serialization/Codec;
-
minClippedHeight
- Mappings:
Namespace Name Mixin selector official b
Lcsp;b:Ljava/util/OptionalInt;
intermediary field_24146
Lnet/minecraft/class_5201;field_24146:Ljava/util/OptionalInt;
named minClippedHeight
Lnet/minecraft/world/gen/feature/size/FeatureSize;minClippedHeight:Ljava/util/OptionalInt;
-
-
Constructor Details
-
FeatureSize
- Mappings:
Namespace Name Mixin selector official <init>
Lcsp;<init>(Ljava/util/OptionalInt;)V
intermediary <init>
Lnet/minecraft/class_5201;<init>(Ljava/util/OptionalInt;)V
named <init>
Lnet/minecraft/world/gen/feature/size/FeatureSize;<init>(Ljava/util/OptionalInt;)V
-
-
Method Details
-
createCodec
protected static <S extends FeatureSize> com.mojang.serialization.codecs.RecordCodecBuilder<S,OptionalInt> createCodec()- Mappings:
Namespace Name Mixin selector official a
Lcsp;a()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
intermediary method_28820
Lnet/minecraft/class_5201;method_28820()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
named createCodec
Lnet/minecraft/world/gen/feature/size/FeatureSize;createCodec()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
-
getType
- Mappings:
Namespace Name Mixin selector official b
Lcsp;b()Lcsq;
intermediary method_28824
Lnet/minecraft/class_5201;method_28824()Lnet/minecraft/class_5202;
named getType
Lnet/minecraft/world/gen/feature/size/FeatureSize;getType()Lnet/minecraft/world/gen/feature/size/FeatureSizeType;
-
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.- Mappings:
Namespace Name Mixin selector official a
Lcsp;a(II)I
intermediary method_27378
Lnet/minecraft/class_5201;method_27378(II)I
named getRadius
Lnet/minecraft/world/gen/feature/size/FeatureSize;getRadius(II)I
-
getMinClippedHeight
- Mappings:
Namespace Name Mixin selector official c
Lcsp;c()Ljava/util/OptionalInt;
intermediary method_27377
Lnet/minecraft/class_5201;method_27377()Ljava/util/OptionalInt;
named getMinClippedHeight
Lnet/minecraft/world/gen/feature/size/FeatureSize;getMinClippedHeight()Ljava/util/OptionalInt;
-