Interface RuleSource
- All Superinterfaces:
SurfaceRule, Wrapper
- All Known Subinterfaces:
BandlandsRuleSource, BlockRuleSource, ConditionRuleSource, SequenceRuleSource
A surface rule source — the tree (
SurfaceRules.RuleSource) that decides which block is placed
at the surface during generation.- Since:
- 3.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuleSourceReads a Minecraft surface-rule source.default ConditionRuleSourcewhen(ConditionSource condition) Applies this rule only where the given condition holds.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
when
Applies this rule only where the given condition holds.- Parameters:
condition- the gating condition- Returns:
- a rule gated by the condition
- Since:
- 3.0.0
-
decode
Reads a Minecraft surface-rule source.- Parameters:
minecraftRule- the rule to read- Returns:
- the decoded rule
- Since:
- 3.3.0
-