Interface VerticalGradientConditionSource
- All Superinterfaces:
ConditionSource, SurfaceRule, Wrapper
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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forVerticalGradientConditionSource. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.The upper vertical anchor.of(String randomName, VerticalAnchor trueAtAndBelow, VerticalAnchor falseAtAndAbove) Creates a new vertical gradient condition source.Used as a seed to randomize the gradient.Converts this object back to a builder.The lower vertical anchor.Methods inherited from interface ConditionSource
not, thenMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
randomName
-
trueAtAndBelow
The lower vertical anchor. Positions at and below this always pass.- Returns:
- the lower anchor
- Since:
- 3.0.0
-
falseAtAndAbove
The upper vertical anchor. Positions at and above this always fail.- Returns:
- the upper anchor
- Since:
- 3.0.0
-
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 gradienttrueAtAndBelow- the anchor at and below which the condition passesfalseAtAndAbove- 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
-