Class OreConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.OreConfiguration.Builder
- Enclosing interface:
OreConfiguration
Builder for
OreConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.discardChanceOnAirExposure(float discardChanceOnAirExposure) Sets the discard chance.size(int size) Sets the size of the ore vein.target(OreConfiguration.TargetBlockState... targetStates) Adds multiple target block states.Adds a target block state.targetStates(List<OreConfiguration.TargetBlockState> targetStates) Sets the list of targets.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
targetStates
@AsOf("3.0.0") public OreConfiguration.Builder targetStates(List<OreConfiguration.TargetBlockState> targetStates) Sets the list of targets.- Parameters:
targetStates- the list of targets- Returns:
- this builder
- Since:
- 3.0.0
-
size
Sets the size of the ore vein.- Parameters:
size- the size of the ore vein- Returns:
- this builder
- Since:
- 3.0.0
-
discardChanceOnAirExposure
@AsOf("3.0.0") public OreConfiguration.Builder discardChanceOnAirExposure(float discardChanceOnAirExposure) Sets the discard chance.- Parameters:
discardChanceOnAirExposure- the discard chance- Returns:
- this builder
- Since:
- 3.0.0
-
target
Adds a target block state.- Parameters:
target- the target rule teststate- the block state- Returns:
- this builder
- Since:
- 3.0.0
-
target
@AsOf("3.0.0") public OreConfiguration.Builder target(OreConfiguration.TargetBlockState... targetStates) Adds multiple target block states.- Parameters:
targetStates- the target block states to add- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the configuration.- Returns:
- the configuration
- Since:
- 3.0.0
-