Interface ConditionRuleSource
- All Superinterfaces:
RuleSource, SurfaceRule, Wrapper
Applies a rule only when a condition holds.
- Since:
- 3.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe gating condition.static ConditionRuleSourceof(ConditionSource condition, RuleSource then) Creates a new condition rule source.then()The rule applied when the condition holds.Methods inherited from interface RuleSource
whenMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
condition
The gating condition.- Returns:
- the condition
- Since:
- 3.0.0
-
then
The rule applied when the condition holds.- Returns:
- the rule
- Since:
- 3.0.0
-
of
Creates a new condition rule source.- Parameters:
condition- the gating conditionthen- the rule applied when the condition holds- Returns:
- the condition rule source
- Since:
- 3.0.0
-