Interface ConditionSource
- All Superinterfaces:
SurfaceRule, Wrapper
- All Known Subinterfaces:
AbovePreliminarySurfaceConditionSource, BiomeConditionSource, HoleConditionSource, NoiseThresholdConditionSource, NotConditionSource, PaperOptionallyFlatBedrockConditionSource, SteepConditionSource, StoneDepthConditionSource, TemperatureConditionSource, VerticalGradientConditionSource, WaterConditionSource, YAboveConditionSource
A surface condition source — the predicate family (
SurfaceRules.ConditionSource) that gates
where a RuleSource applies.- Since:
- 3.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionSourceReads a Minecraft surface-rule condition source.default NotConditionSourcenot()Inverts this condition, passing when it fails.default ConditionRuleSourcethen(RuleSource then) Applies a rule only where this condition holds.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
not
Inverts this condition, passing when it fails.- Returns:
- a condition that negates this one
- Since:
- 3.0.0
-
then
Applies a rule only where this condition holds.- Parameters:
then- the rule to apply when this condition passes- Returns:
- a rule gated by this condition
- Since:
- 3.0.0
-
decode
Reads a Minecraft surface-rule condition source.- Parameters:
minecraftCondition- the condition to read- Returns:
- the decoded condition
- Since:
- 3.3.0
-