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 drb
intermediary net/minecraft/class_5201
named net/minecraft/world/gen/feature/size/FeatureSize
  • Field Details

    • TYPE_CODEC

      public static final com.mojang.serialization.Codec<FeatureSize> TYPE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldrb;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 Ldrb;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

      protected final OptionalInt minClippedHeight
      Mappings:
      Namespace Name Mixin selector
      official c Ldrb;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

      public FeatureSize(OptionalInt minClippedHeight)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldrb;<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 Ldrb;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

      protected abstract FeatureSizeType<?> getType()
      Mappings:
      Namespace Name Mixin selector
      official b Ldrb;b()Ldrc;
      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 Ldrb;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

      public OptionalInt getMinClippedHeight()
      Mappings:
      Namespace Name Mixin selector
      official c Ldrb;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;