Interface FallenTreeConfiguration

All Superinterfaces:
FeatureConfiguration, Wrapper

@NullMarked @AsOf("3.0.0") public interface FallenTreeConfiguration extends FeatureConfiguration
A feature that resembles a tree lying on the ground after falling over.
Since:
3.0.0
See Also:
  • Method Details

    • trunkProvider

      @AsOf("3.0.0") BlockStateProvider trunkProvider()
      The block state provider used for the fallen tree's trunk.
      Returns:
      the trunk provider
      Since:
      3.0.0
    • logLength

      @AsOf("3.0.0") IntProvider logLength()
      The length of the fallen log. Value between 0 and 16.
      Returns:
      the log length
      Since:
      3.0.0
    • stumpDecorators

      @AsOf("3.0.0") List<TreeDecorator> stumpDecorators()
      The decorators applied to the stump of the fallen tree.
      Returns:
      an immutable list of stump decorators
      Since:
      3.0.0
    • logDecorators

      @AsOf("3.0.0") List<TreeDecorator> logDecorators()
      The decorators applied to the fallen log of the tree.
      Returns:
      an immutable list of log decorators
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default FallenTreeConfiguration.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static FallenTreeConfiguration of(BlockStateProvider trunkProvider, IntProvider logLength, List<TreeDecorator> stumpDecorators, List<TreeDecorator> logDecorators)
      Creates a new fallen tree configuration.
      Parameters:
      trunkProvider - the block state provider used for the trunk
      logLength - the length of the fallen log
      stumpDecorators - the decorators applied to the stump
      logDecorators - the decorators applied to the fallen log
      Returns:
      a new fallen tree configuration
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static FallenTreeConfiguration.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0