Record Class FallenTreeFeature

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.FallenTreeFeature
All Implemented Interfaces:
Feature

public record FallenTreeFeature(Holder<BlockStateProvider> trunkProvider, IntProvider logLength, List<TreeDecorator> stumpDecorators, List<TreeDecorator> logDecorators) extends Record implements Feature
  • Field Details

    • trunkProvider

      private final Holder<BlockStateProvider> trunkProvider
      The field for the trunkProvider record component.
    • logLength

      private final IntProvider logLength
      The field for the logLength record component.
    • stumpDecorators

      private final List<TreeDecorator> stumpDecorators
      The field for the stumpDecorators record component.
    • logDecorators

      private final List<TreeDecorator> logDecorators
      The field for the logDecorators record component.
    • STUMP_HEIGHT

      private static final int STUMP_HEIGHT
      See Also:
    • STUMP_HEIGHT_PLUS_EMPTY_SPACE

      private static final int STUMP_HEIGHT_PLUS_EMPTY_SPACE
      See Also:
    • FALLEN_LOG_MAX_FALL_HEIGHT_TO_GROUND

      private static final int FALLEN_LOG_MAX_FALL_HEIGHT_TO_GROUND
      See Also:
    • FALLEN_LOG_MAX_GROUND_GAP

      private static final int FALLEN_LOG_MAX_GROUND_GAP
      See Also:
    • FALLEN_LOG_MAX_SPACE_FROM_STUMP

      private static final int FALLEN_LOG_MAX_SPACE_FROM_STUMP
      See Also:
    • CODEC

      public static final com.mojang.serialization.MapCodec<FallenTreeFeature> CODEC
  • Constructor Details

    • FallenTreeFeature

      public FallenTreeFeature(Holder<BlockStateProvider> trunkProvider, IntProvider logLength, List<TreeDecorator> stumpDecorators, List<TreeDecorator> logDecorators)
      Creates an instance of a FallenTreeFeature record class.
      Parameters:
      trunkProvider - the value for the trunkProvider record component
      logLength - the value for the logLength record component
      stumpDecorators - the value for the stumpDecorators record component
      logDecorators - the value for the logDecorators record component
  • Method Details