Class FeatureSize
java.lang.Object
net.minecraft.world.gen.feature.size.FeatureSize
- Direct Known Subclasses:
ThreeLayersFeatureSize
,TwoLayersFeatureSize
In charge of determining the amount of space needed by a tree to generate.
- Mappings:
Namespace Name official dgy
intermediary net/minecraft/class_5201
named net/minecraft/world/gen/feature/size/FeatureSize
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected final OptionalInt
static final com.mojang.serialization.Codec<FeatureSize>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static <S extends FeatureSize>
com.mojang.serialization.codecs.RecordCodecBuilder<S,OptionalInt> 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
Ldgy;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;
-
field_31522
protected static final int field_31522- See Also:
- Mappings:
Namespace Name Mixin selector official b
Ldgy;b:I
intermediary field_31522
Lnet/minecraft/class_5201;field_31522:I
named field_31522
Lnet/minecraft/world/gen/feature/size/FeatureSize;field_31522:I
-
minClippedHeight
- Mappings:
Namespace Name Mixin selector official c
Ldgy;c: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>
Ldgy;<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
Ldgy;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
Ldgy;b()Ldgz;
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
Ldgy;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
Ldgy;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;
-