Interface VerticalGradientConditionSource

All Superinterfaces:
ConditionSource, SurfaceRule, Wrapper

@NullMarked @AsOf("3.0.0") public interface VerticalGradientConditionSource extends ConditionSource
Compares the current Y position with a messy transition, just like the deepslate and bedrock transitions. Positions at and below trueAtAndBelow always pass, positions at and above falseAtAndAbove always fail, and the Y-coordinates between the two anchors produce a gradient.
Since:
3.0.0
See Also:
  • Method Details

    • randomName

      @AsOf("3.0.0") String randomName()
      Used as a seed to randomize the gradient.
      Returns:
      the random name
      Since:
      3.0.0
    • trueAtAndBelow

      @AsOf("3.0.0") VerticalAnchor trueAtAndBelow()
      The lower vertical anchor. Positions at and below this always pass.
      Returns:
      the lower anchor
      Since:
      3.0.0
    • falseAtAndAbove

      @AsOf("3.0.0") VerticalAnchor falseAtAndAbove()
      The upper vertical anchor. Positions at and above this always fail.
      Returns:
      the upper anchor
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default VerticalGradientConditionSource.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 VerticalGradientConditionSource of(String randomName, VerticalAnchor trueAtAndBelow, VerticalAnchor falseAtAndAbove)
      Creates a new vertical gradient condition source.
      Parameters:
      randomName - the seed used to randomize the gradient
      trueAtAndBelow - the anchor at and below which the condition passes
      falseAtAndAbove - the anchor at and above which the condition fails
      Returns:
      the vertical gradient condition source
      Since:
      3.0.0
    • builder

      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0