Interface UnderwaterMagmaConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
@NullMarked
@AsOf("3.0.1")
public interface UnderwaterMagmaConfiguration
extends FeatureConfiguration
A feature that places magma blocks below water, along the floor of an ocean or similar body of water.
- Since:
- 3.0.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forUnderwaterMagmaConfiguration. -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.intHow far down the feature searches for a floor, between 0 and 512.static UnderwaterMagmaConfigurationof(int floorSearchRange, int placementRadiusAroundFloor, float placementProbabilityPerValidPosition) Creates a new underwater magma configuration.floatThe chance of placing magma at each valid position, between 0.0 and 1.0.intThe radius around the found floor in which magma may be placed, between 0 and 64.Converts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
floorSearchRange
How far down the feature searches for a floor, between 0 and 512.- Returns:
- the floor search range
- Since:
- 3.0.1
-
placementRadiusAroundFloor
The radius around the found floor in which magma may be placed, between 0 and 64.- Returns:
- the placement radius around the floor
- Since:
- 3.0.1
-
placementProbabilityPerValidPosition
The chance of placing magma at each valid position, between 0.0 and 1.0.- Returns:
- the placement probability per valid position
- Since:
- 3.0.1
-
toBuilder
Converts this object back to a builder.- Returns:
- a new builder with the same values as this object
- Since:
- 3.0.1
-
of
@AsOf("3.0.1") static UnderwaterMagmaConfiguration of(int floorSearchRange, int placementRadiusAroundFloor, float placementProbabilityPerValidPosition) Creates a new underwater magma configuration.- Parameters:
floorSearchRange- how far down the feature searches for a floor, between 0 and 512placementRadiusAroundFloor- the radius around the found floor in which magma may be placed, between 0 and 64placementProbabilityPerValidPosition- the chance of placing magma at each valid position, between 0.0 and 1.0- Returns:
- a new underwater magma configuration
- Since:
- 3.0.1
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.1
-