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

    • TYPE_CODEC

      public static final com.mojang.serialization.Codec<FeatureSize> TYPE_CODEC
      Mappings:
      Namespace Name Mixin selector
      named TYPE_CODEC Lnet/minecraft/world/gen/feature/size/FeatureSize;TYPE_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_24922 Lnet/minecraft/class_5201;field_24922:Lcom/mojang/serialization/Codec;
      official a Leka;a:Lcom/mojang/serialization/Codec;
    • field_31522

      protected static final int field_31522
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31522 Lnet/minecraft/world/gen/feature/size/FeatureSize;field_31522:I
      intermediary field_31522 Lnet/minecraft/class_5201;field_31522:I
      official b Leka;b:I
    • minClippedHeight

      protected final OptionalInt minClippedHeight
      Mappings:
      Namespace Name Mixin selector
      named minClippedHeight Lnet/minecraft/world/gen/feature/size/FeatureSize;minClippedHeight:Ljava/util/OptionalInt;
      intermediary field_24146 Lnet/minecraft/class_5201;field_24146:Ljava/util/OptionalInt;
      official c Leka;c:Ljava/util/OptionalInt;
  • Constructor Details

    • FeatureSize

      public FeatureSize(OptionalInt minClippedHeight)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/feature/size/FeatureSize;<init>(Ljava/util/OptionalInt;)V
      intermediary <init> Lnet/minecraft/class_5201;<init>(Ljava/util/OptionalInt;)V
      official <init> Leka;<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
      named createCodec Lnet/minecraft/world/gen/feature/size/FeatureSize;createCodec()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      intermediary method_28820 Lnet/minecraft/class_5201;method_28820()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      official a Leka;a()Lcom/mojang/serialization/codecs/RecordCodecBuilder;
    • getType

      protected abstract FeatureSizeType<?> getType()
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/world/gen/feature/size/FeatureSize;getType()Lnet/minecraft/world/gen/feature/size/FeatureSizeType;
      intermediary method_28824 Lnet/minecraft/class_5201;method_28824()Lnet/minecraft/class_5202;
      official b Leka;b()Lekb;
    • 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
      named getRadius Lnet/minecraft/world/gen/feature/size/FeatureSize;getRadius(II)I
      intermediary method_27378 Lnet/minecraft/class_5201;method_27378(II)I
      official a Leka;a(II)I
    • getMinClippedHeight

      public OptionalInt getMinClippedHeight()
      Mappings:
      Namespace Name Mixin selector
      named getMinClippedHeight Lnet/minecraft/world/gen/feature/size/FeatureSize;getMinClippedHeight()Ljava/util/OptionalInt;
      intermediary method_27377 Lnet/minecraft/class_5201;method_27377()Ljava/util/OptionalInt;
      official c Leka;c()Ljava/util/OptionalInt;