Interface TreeDecorator

All Superinterfaces:
Wrapper
All Known Subinterfaces:
AlterGroundDecorator, AttachedToLeavesDecorator, AttachedToLogsDecorator, BeehiveDecorator, CocoaDecorator, CreakingHeartDecorator, LeaveVineDecorator, PaleMossDecorator, PlaceOnGroundDecorator, TrunkVineDecorator

@NullMarked @AsOf("3.0.0") public interface TreeDecorator extends Wrapper
Decorators are used to add additional blocks to various parts of the tree.
Since:
3.0.0
See Also:
  • Method Details

    • alterGround

      @AsOf("3.0.0") static AlterGroundDecorator alterGround(BlockStateProvider provider)
      Replaces blocks in the #minecraft:dirt tag around the tree with different blocks.
      Parameters:
      provider - The block state provider to use.
      Returns:
      The alter ground decorator.
      Since:
      3.0.0
    • attachedToLeaves

      @AsOf("3.0.0") static AttachedToLeavesDecorator.Builder attachedToLeaves()
      Attaches blocks to the exposed faces of all foliage blocks in specified directions.
      Returns:
      The attached to leaves decorator.
      Since:
      3.0.0
    • attachedToLogs

      @AsOf("3.0.0") static AttachedToLogsDecorator.Builder attachedToLogs()
      Attaches blocks to the exposed faces of all trunk blocks in specified directions.
      Returns:
      The attached to logs decorator.
      Since:
      3.0.0
    • beehive

      @AsOf("3.0.0") static BeehiveDecorator beehive(float probability)
      Places a single beehive with the specified probability. The beehive is always located 1 block below the lowest leaves block, but possibly on a different branch.
      Parameters:
      probability - The probability of placing a beehive, between 0.0F and 1.0F (inclusive).
      Returns:
      The beehive decorator.
      Since:
      3.0.0
    • cocoa

      @AsOf("3.0.0") static CocoaDecorator cocoa(float probability)
      Places cocoa beans on the bottom 3 blocks of the trunk with a probability of 25% for each face.
      Parameters:
      probability - The probability that this decorator places any cocoa beans, between 0.0F and 1.0F (inclusive).
      Returns:
      The cocoa decorator.
      Since:
      3.0.0
    • creakingHeart

      @AsOf("3.0.0") static CreakingHeartDecorator creakingHeart(float probability)
      Places a creaking heart, replacing a trunk block in a position where all 6 surrounding blocks are in the #minecraft:logs tag.
      Parameters:
      probability - The probability of placing a creaking heart, between 0.0F and 1.0F (inclusive).
      Returns:
      The creaking heart decorator.
      Since:
      3.0.0
    • leaveVine

      @AsOf("3.0.0") static LeaveVineDecorator leaveVine(float probability)
      Places vines attached to any foliage blocks. Each vine is extended by 4 blocks downwards if possible.
      Parameters:
      probability - The probability of placing a vine at any given position, between 0.0F and 1.0F (inclusive).
      Returns:
      The leave vine decorator.
      Since:
      3.0.0
    • paleMoss

      @AsOf("3.0.0") static PaleMossDecorator.Builder paleMoss()
      Places the minecraft:pale_moss_patch configured feature at the position of the lowest log, and adds hanging moss to the bottom of trunk and foliage blocks.
      Returns:
      The pale moss decorator builder.
      Since:
      3.0.0
    • placeOnGround

      @AsOf("3.0.0") static PlaceOnGroundDecorator.Builder placeOnGround()
      Tries positions within the specified radius and height range to find a valid ground position, and places the specified block on the block above any matching positions.
      Returns:
      The place on ground decorator builder.
      Since:
      3.0.0
    • trunkVine

      @AsOf("3.0.0") static TrunkVineDecorator trunkVine()
      Adds vines to each side of each trunk block with a probability of 75% each.
      Returns:
      The trunk vine decorator.
      Since:
      3.0.0
    • decode

      @Internal static TreeDecorator decode(Object minecraftDecorator)