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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forPaperOptionallyFlatBedrockConditionSource. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new optionally-flat bedrock condition source builder.Gets the anchor at and above which the condition fails.of(ResourceKey randomName, VerticalAnchor trueAtAndBelow, VerticalAnchor falseAtAndAbove, boolean roof) Creates a new optionally-flat bedrock condition source.Gets the seed name used to randomize the non-flat gradient.booleanroof()Gets whether the collapsed flat layer belongs to the dimension roof.Converts this object back to a builder.Gets the anchor at and below which the condition passes.Methods inherited from interface ConditionSource
not, thenMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
randomName
Gets the seed name used to randomize the non-flat gradient.- Returns:
- the random name
- Since:
- 3.3.0
-
trueAtAndBelow
Gets the anchor at and below which the condition passes.- Returns:
- the lower anchor
- Since:
- 3.3.0
-
falseAtAndAbove
Gets the anchor at and above which the condition fails.- Returns:
- the upper anchor
- Since:
- 3.3.0
-
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 gradienttrueAtAndBelow- the anchor at and below which the condition passesfalseAtAndAbove- the anchor at and above which the condition failsroof- 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
-