Interface PaleMossDecorator

All Superinterfaces:
TreeDecorator, Wrapper

@NullMarked @AsOf("3.0.0") public interface PaleMossDecorator extends TreeDecorator
Places the minecraft:pale_moss_patch configured feature at the position of the lowest log with probability groundProbability(). Adds hanging moss to the bottom of trunk and foliage blocks with probability trunkProbability() and leavesProbability() respectively.
Since:
3.0.0
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Builder for PaleMossDecorator.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new builder.
    float
    The probability of placing the minecraft:pale_moss_patch configured feature at the position of the lowest log, between 0.0F and 1.0F (inclusive).
    float
    The probability of adding hanging moss to the bottom of foliage blocks, between 0.0F and 1.0F (inclusive).
    of(float leavesProbability, float trunkProbability, float groundProbability)
    Creates a new pale moss decorator.
    Converts this object back to a builder.
    float
    The probability of adding hanging moss to the bottom of trunk blocks, between 0.0F and 1.0F (inclusive).

    Methods inherited from interface Wrapper

    asHandle, toMinecraft, unwrap
  • Method Details

    • leavesProbability

      @AsOf("3.0.0") float leavesProbability()
      The probability of adding hanging moss to the bottom of foliage blocks, between 0.0F and 1.0F (inclusive).
      Returns:
      the leaves probability
      Since:
      3.0.0
    • trunkProbability

      @AsOf("3.0.0") float trunkProbability()
      The probability of adding hanging moss to the bottom of trunk blocks, between 0.0F and 1.0F (inclusive).
      Returns:
      the trunk probability
      Since:
      3.0.0
    • groundProbability

      @AsOf("3.0.0") float groundProbability()
      The probability of placing the minecraft:pale_moss_patch configured feature at the position of the lowest log, between 0.0F and 1.0F (inclusive).
      Returns:
      the ground probability
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default PaleMossDecorator.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 PaleMossDecorator of(float leavesProbability, float trunkProbability, float groundProbability)
      Creates a new pale moss decorator.
      Parameters:
      leavesProbability - the probability of adding hanging moss to the bottom of foliage blocks, between 0.0F and 1.0F (inclusive)
      trunkProbability - the probability of adding hanging moss to the bottom of trunk blocks, between 0.0F and 1.0F (inclusive)
      groundProbability - the probability of placing the pale moss patch at the lowest log, between 0.0F and 1.0F (inclusive)
      Returns:
      a new pale moss decorator
      Since:
      3.0.0
    • builder

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