Class CaveWorldCarver.Builder
java.lang.Object
dev.wyck.worldgen.carver.CaveWorldCarver.Builder
- Enclosing interface:
CaveWorldCarver
Builder for
CaveWorldCarver.- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Builder(CaveWorldCarver carver) Creates a builder containing the values of an existing cave carver. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the cave world carver.count(IntProvider count) Sets the number of cave tunnels attempted by the carver.floorLevel(FloatProvider floorLevel) Sets the relative floor level below which the cave is not carved.horizontalRadiusMultiplier(FloatProvider horizontalRadiusMultiplier) Sets the horizontal radius multiplier used for cave tunnels.probability(float probability) Sets the probability that the carver starts in an eligible chunk.roomVerticalRadiusMultiplier(FloatProvider roomVerticalRadiusMultiplier) Sets the vertical radius multiplier used for cave rooms.startVerticalRadiusMultiplier(FloatProvider startVerticalRadiusMultiplier) Sets the vertical radius multiplier used at the start of a cave tunnel.thickness(FloatProvider thickness) Sets the base thickness of each cave tunnel.verticalRadiusMultiplier(FloatProvider verticalRadiusMultiplier) Sets the vertical radius multiplier used for cave tunnels.weirdThicknessBias(boolean weirdThicknessBias) Sets whether Minecraft's biased thickness calculation is used.y(HeightProvider y) Sets the provider used to select the starting y-coordinate.
-
Constructor Details
-
Builder
public Builder() -
Builder
Creates a builder containing the values of an existing cave carver.- Parameters:
carver- the cave carver to copy- Since:
- 4.0.0
-
-
Method Details
-
probability
Sets the probability that the carver starts in an eligible chunk.- Parameters:
probability- the carver start probability- Returns:
- this builder
- Since:
- 4.0.0
-
y
Sets the provider used to select the starting y-coordinate.- Parameters:
y- the starting height provider- Returns:
- this builder
- Since:
- 4.0.0
-
count
Sets the number of cave tunnels attempted by the carver.- Parameters:
count- the cave tunnel count- Returns:
- this builder
- Since:
- 4.0.0
-
thickness
Sets the base thickness of each cave tunnel.- Parameters:
thickness- the cave tunnel thickness- Returns:
- this builder
- Since:
- 4.0.0
-
weirdThicknessBias
Sets whether Minecraft's biased thickness calculation is used.- Parameters:
weirdThicknessBias- whether the thickness calculation is biased- Returns:
- this builder
- Since:
- 4.0.0
-
roomVerticalRadiusMultiplier
@AsOf("4.0.0") public CaveWorldCarver.Builder roomVerticalRadiusMultiplier(FloatProvider roomVerticalRadiusMultiplier) Sets the vertical radius multiplier used for cave rooms.- Parameters:
roomVerticalRadiusMultiplier- the room vertical radius multiplier- Returns:
- this builder
- Since:
- 4.0.0
-
horizontalRadiusMultiplier
@AsOf("4.0.0") public CaveWorldCarver.Builder horizontalRadiusMultiplier(FloatProvider horizontalRadiusMultiplier) Sets the horizontal radius multiplier used for cave tunnels.- Parameters:
horizontalRadiusMultiplier- the horizontal radius multiplier- Returns:
- this builder
- Since:
- 4.0.0
-
verticalRadiusMultiplier
@AsOf("4.0.0") public CaveWorldCarver.Builder verticalRadiusMultiplier(FloatProvider verticalRadiusMultiplier) Sets the vertical radius multiplier used for cave tunnels.- Parameters:
verticalRadiusMultiplier- the vertical radius multiplier- Returns:
- this builder
- Since:
- 4.0.0
-
startVerticalRadiusMultiplier
@AsOf("4.0.0") public CaveWorldCarver.Builder startVerticalRadiusMultiplier(FloatProvider startVerticalRadiusMultiplier) Sets the vertical radius multiplier used at the start of a cave tunnel.- Parameters:
startVerticalRadiusMultiplier- the starting vertical radius multiplier- Returns:
- this builder
- Since:
- 4.0.0
-
floorLevel
Sets the relative floor level below which the cave is not carved.- Parameters:
floorLevel- the cave floor level- Returns:
- this builder
- Since:
- 4.0.0
-
build
Builds the cave world carver.- Returns:
- the cave world carver
- Since:
- 4.0.0
-