Interface BeehiveDecorator

All Superinterfaces:
TreeDecorator, Wrapper

@NullMarked @AsOf("3.0.0") public interface BeehiveDecorator extends TreeDecorator
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.
Since:
3.0.0
See Also:
  • Method Details

    • probability

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

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

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