Interface PaperOptionallyFlatBedrockConditionSource

All Superinterfaces:
ConditionSource, SurfaceRule, Wrapper

@NullMarked @AsOf("3.3.0") @Experimental public interface PaperOptionallyFlatBedrockConditionSource extends ConditionSource
A Paper surface condition that follows the vanilla bedrock gradient unless flat bedrock generation is enabled for the world. When enabled, the two anchors collapse to a single floor or roof layer.
Since:
3.3.0
  • Method Details

    • randomName

      @AsOf("3.3.0") ResourceKey randomName()
      Gets the seed name used to randomize the non-flat gradient.
      Returns:
      the random name
      Since:
      3.3.0
    • trueAtAndBelow

      @AsOf("3.3.0") VerticalAnchor trueAtAndBelow()
      Gets the anchor at and below which the condition passes.
      Returns:
      the lower anchor
      Since:
      3.3.0
    • falseAtAndAbove

      @AsOf("3.3.0") VerticalAnchor falseAtAndAbove()
      Gets the anchor at and above which the condition fails.
      Returns:
      the upper anchor
      Since:
      3.3.0
    • roof

      @AsOf("3.3.0") boolean roof()
      Gets whether the collapsed flat layer belongs to the dimension roof.
      Returns:
      whether this condition creates roof bedrock
      Since:
      3.3.0
    • toBuilder

      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.3.0
    • of

      @AsOf("3.3.0") static PaperOptionallyFlatBedrockConditionSource of(ResourceKey randomName, VerticalAnchor trueAtAndBelow, VerticalAnchor falseAtAndAbove, boolean roof)
      Creates a new optionally-flat bedrock condition source.
      Parameters:
      randomName - the seed used to randomize the gradient
      trueAtAndBelow - the anchor at and below which the condition passes
      falseAtAndAbove - the anchor at and above which the condition fails
      roof - whether the collapsed flat layer belongs to the dimension roof
      Returns:
      the optionally-flat bedrock condition source
      Since:
      3.3.0
    • builder

      Creates a new optionally-flat bedrock condition source builder.
      Returns:
      a new builder
      Since:
      3.3.0