Interface CreakingHeartDecorator

All Superinterfaces:
TreeDecorator, Wrapper

@NullMarked @AsOf("3.0.0") public interface CreakingHeartDecorator extends TreeDecorator
Places a creaking heart, replacing a trunk block in a position where all 6 surrounding blocks are in the #minecraft:logs tag.
Since:
3.0.0
See Also:
  • Method Details

    • probability

      @AsOf("3.0.0") float probability()
      The probability of placing a creaking heart, between 0.0F and 1.0F (inclusive).
      Returns:
      the probability
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default CreakingHeartDecorator.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 CreakingHeartDecorator of(float probability)
      Creates a new creaking heart decorator.
      Parameters:
      probability - the probability of placing a creaking heart, between 0.0F and 1.0F (inclusive)
      Returns:
      a new creaking heart decorator
      Since:
      3.0.0
    • builder

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