类 FeatureSize
- java.lang.Object
-
- net.minecraft.world.gen.feature.size.FeatureSize
-
public abstract class FeatureSize extends Object
In charge of determining the amount of space needed by a tree to generate.- Mappings:
Namespace Name official cvmintermediary net/minecraft/class_5201named net/minecraft/world/gen/feature/size/FeatureSize
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static intfield_31522protected OptionalIntminClippedHeightstatic com.mojang.serialization.Codec<FeatureSize>TYPE_CODEC
-
构造器概要
构造器 构造器 说明 FeatureSize(OptionalInt minClippedHeight)
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 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()
-
-
-
字段详细资料
-
TYPE_CODEC
public static final com.mojang.serialization.Codec<FeatureSize> TYPE_CODEC
- Mappings:
Namespace Name Mixin selector official aLcvm;a:Lcom/mojang/serialization/Codec;intermediary field_24922Lnet/minecraft/class_5201;field_24922:Lcom/mojang/serialization/Codec;named TYPE_CODECLnet/minecraft/world/gen/feature/size/FeatureSize;TYPE_CODEC:Lcom/mojang/serialization/Codec;
-
field_31522
protected static final int field_31522
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLcvm;b:Iintermediary field_31522Lnet/minecraft/class_5201;field_31522:Inamed field_31522Lnet/minecraft/world/gen/feature/size/FeatureSize;field_31522:I
-
minClippedHeight
protected final OptionalInt minClippedHeight
- Mappings:
Namespace Name Mixin selector official cLcvm;c:Ljava/util/OptionalInt;intermediary field_24146Lnet/minecraft/class_5201;field_24146:Ljava/util/OptionalInt;named minClippedHeightLnet/minecraft/world/gen/feature/size/FeatureSize;minClippedHeight:Ljava/util/OptionalInt;
-
-
构造器详细资料
-
FeatureSize
public FeatureSize(OptionalInt minClippedHeight)
- Mappings:
Namespace Name Mixin selector official <init>Lcvm;<init>(Ljava/util/OptionalInt;)Vintermediary <init>Lnet/minecraft/class_5201;<init>(Ljava/util/OptionalInt;)Vnamed <init>Lnet/minecraft/world/gen/feature/size/FeatureSize;<init>(Ljava/util/OptionalInt;)V
-
-
方法详细资料
-
createCodec
protected static <S extends FeatureSize> com.mojang.serialization.codecs.RecordCodecBuilder<S,OptionalInt> createCodec()
- Mappings:
Namespace Name Mixin selector official aLcvm;a()Lcom/mojang/serialization/codecs/RecordCodecBuilder;intermediary method_28820Lnet/minecraft/class_5201;method_28820()Lcom/mojang/serialization/codecs/RecordCodecBuilder;named createCodecLnet/minecraft/world/gen/feature/size/FeatureSize;createCodec()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
-
getType
protected abstract FeatureSizeType<?> getType()
- Mappings:
Namespace Name Mixin selector official bLcvm;b()Lcvn;intermediary method_28824Lnet/minecraft/class_5201;method_28824()Lnet/minecraft/class_5202;named getTypeLnet/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 aLcvm;a(II)Iintermediary method_27378Lnet/minecraft/class_5201;method_27378(II)Inamed getRadiusLnet/minecraft/world/gen/feature/size/FeatureSize;getRadius(II)I
-
getMinClippedHeight
public OptionalInt getMinClippedHeight()
- Mappings:
Namespace Name Mixin selector official cLcvm;c()Ljava/util/OptionalInt;intermediary method_27377Lnet/minecraft/class_5201;method_27377()Ljava/util/OptionalInt;named getMinClippedHeightLnet/minecraft/world/gen/feature/size/FeatureSize;getMinClippedHeight()Ljava/util/OptionalInt;
-
-