Class PaperOptionallyFlatBedrockConditionSource.Builder
java.lang.Object
dev.wyck.worldgen.surface.condition.PaperOptionallyFlatBedrockConditionSource.Builder
- Enclosing interface:
PaperOptionallyFlatBedrockConditionSource
@AsOf("3.3.0")
public static final class PaperOptionallyFlatBedrockConditionSource.Builder
extends Object
Builder for
PaperOptionallyFlatBedrockConditionSource.- Since:
- 3.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the optionally-flat bedrock condition source.falseAtAndAbove(VerticalAnchor falseAtAndAbove) Sets the anchor at and above which the condition fails.randomName(ResourceKey randomName) Sets the seed name used to randomize the non-flat gradient.roof(boolean roof) Sets whether the collapsed flat layer belongs to the dimension roof.trueAtAndBelow(VerticalAnchor trueAtAndBelow) Sets the anchor at and below which the condition passes.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
randomName
@AsOf("3.3.0") public PaperOptionallyFlatBedrockConditionSource.Builder randomName(ResourceKey randomName) Sets the seed name used to randomize the non-flat gradient.- Parameters:
randomName- the random name- Returns:
- this builder
- Since:
- 3.3.0
-
trueAtAndBelow
@AsOf("3.3.0") public PaperOptionallyFlatBedrockConditionSource.Builder trueAtAndBelow(VerticalAnchor trueAtAndBelow) Sets the anchor at and below which the condition passes.- Parameters:
trueAtAndBelow- the lower anchor- Returns:
- this builder
- Since:
- 3.3.0
-
falseAtAndAbove
@AsOf("3.3.0") public PaperOptionallyFlatBedrockConditionSource.Builder falseAtAndAbove(VerticalAnchor falseAtAndAbove) Sets the anchor at and above which the condition fails.- Parameters:
falseAtAndAbove- the upper anchor- Returns:
- this builder
- Since:
- 3.3.0
-
roof
Sets whether the collapsed flat layer belongs to the dimension roof.- Parameters:
roof- whether this condition creates roof bedrock- Returns:
- this builder
- Since:
- 3.3.0
-
build
Builds the optionally-flat bedrock condition source.- Returns:
- the optionally-flat bedrock condition source
- Since:
- 3.3.0
-