Interface YAboveConditionSource
- All Superinterfaces:
ConditionSource, SurfaceRule, Wrapper
Checks if the current position is above a specified height (exclusive).
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf true, adds the distance to the surface above to the offset.anchor()The vertical anchor to compare the height with.builder()Creates a new builder.static YAboveConditionSourceof(VerticalAnchor anchor, int surfaceDepthMultiplier, boolean addStoneDepth) Creates a new y above condition source.intHow much the check is affected by the surface depth, between-20and20.default YAboveConditionSource.BuilderConverts this object back to a builder.Methods inherited from interface ConditionSource
not, thenMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
anchor
The vertical anchor to compare the height with.- Returns:
- the anchor
- Since:
- 3.0.0
-
surfaceDepthMultiplier
How much the check is affected by the surface depth, between-20and20.- Returns:
- the surface depth multiplier
- Since:
- 3.0.0
-
addStoneDepth
If true, adds the distance to the surface above to the offset.- Returns:
- whether the stone depth is added
- 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 YAboveConditionSource of(VerticalAnchor anchor, int surfaceDepthMultiplier, boolean addStoneDepth) Creates a new y above condition source.- Parameters:
anchor- the vertical anchor to compare the height withsurfaceDepthMultiplier- how much the check is affected by the surface depthaddStoneDepth- whether the distance to the surface above is added to the offset- Returns:
- the y above condition source
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-