Interface ShelfMushroomDecorator

All Superinterfaces:
TreeDecorator, Wrapper

@NullMarked @AsOf("4.0.0") public interface ShelfMushroomDecorator extends TreeDecorator
Places shelf mushrooms on standing trees and fallen logs.
Since:
4.0.0
See Also:
  • Method Details

    • probability

      @AsOf("4.0.0") float probability()
      The probability that shelf mushrooms are placed.
      Returns:
      the placement probability
      Since:
      4.0.0
    • toBuilder

      @AsOf("4.0.0") default ShelfMushroomDecorator.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder containing the same value
      Since:
      4.0.0
    • of

      @AsOf("4.0.0") static ShelfMushroomDecorator of(float probability)
      Creates a shelf mushroom decorator.
      Parameters:
      probability - the placement probability, between 0 and 1
      Returns:
      a new shelf mushroom decorator
      Since:
      4.0.0
    • builder

      @AsOf("4.0.0") static ShelfMushroomDecorator.Builder builder()
      Creates a new builder.
      Returns:
      a new shelf mushroom decorator builder
      Since:
      4.0.0