Interface ConditionSource

All Superinterfaces:
SurfaceRule, Wrapper
All Known Subinterfaces:
AbovePreliminarySurfaceConditionSource, BiomeConditionSource, HoleConditionSource, NoiseThresholdConditionSource, NotConditionSource, PaperOptionallyFlatBedrockConditionSource, SteepConditionSource, StoneDepthConditionSource, TemperatureConditionSource, VerticalGradientConditionSource, WaterConditionSource, YAboveConditionSource

@NullMarked @AsOf("3.0.0") public interface ConditionSource extends SurfaceRule
A surface condition source — the predicate family (SurfaceRules.ConditionSource) that gates where a RuleSource applies.
Since:
3.0.0
See Also:
  • Method Details

    • not

      @AsOf("3.0.0") default NotConditionSource not()
      Inverts this condition, passing when it fails.
      Returns:
      a condition that negates this one
      Since:
      3.0.0
    • then

      @AsOf("3.0.0") default ConditionRuleSource then(RuleSource 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

      @AsOf("3.3.0") static ConditionSource decode(Object minecraftCondition)
      Reads a Minecraft surface-rule condition source.
      Parameters:
      minecraftCondition - the condition to read
      Returns:
      the decoded condition
      Since:
      3.3.0