java.lang.Object
net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize
Direct Known Subclasses:
ThreeLayersFeatureSize, TwoLayersFeatureSize

public abstract class FeatureSize extends Object
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<FeatureSize> CODEC
    • MAX_WIDTH

      protected static final int MAX_WIDTH
      See Also:
    • minClippedHeight

      protected final OptionalInt minClippedHeight
  • Constructor Details

    • FeatureSize

      public FeatureSize(OptionalInt p_68285_)
  • Method Details

    • minClippedHeightCodec

      protected static <S extends FeatureSize> com.mojang.serialization.codecs.RecordCodecBuilder<S,OptionalInt> minClippedHeightCodec()
    • type

      protected abstract FeatureSizeType<?> type()
    • getSizeAtHeight

      public abstract int getSizeAtHeight(int p_68287_, int p_68288_)
    • minClippedHeight

      public OptionalInt minClippedHeight()