Interface OreConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
A feature consisting of a natural deposit of ores or other blocks in the ground.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forOreConfiguration.static final recordA target block state. -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionstatic OreConfiguration.Builderbuilder()Creates a new builder.floatThe chance for the entire ore vein to be discarded if any constituent block is adjacent to an air block between 0.0 and 1.0.static OreConfigurationof(List<OreConfiguration.TargetBlockState> targetStates, int size, float discardChanceOnAirExposure) Creates a new ore configuration.intsize()Determines the size of the ore vein between 0 and 64.Creates a new target block state.A list of targets.default OreConfiguration.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
targetStates
A list of targets.- Returns:
- the list of targets
- Since:
- 3.0.0
-
size
Determines the size of the ore vein between 0 and 64.- Returns:
- the size of the ore vein
- Since:
- 3.0.0
- See Also:
-
discardChanceOnAirExposure
The chance for the entire ore vein to be discarded if any constituent block is adjacent to an air block between 0.0 and 1.0. Other non-solid blocks such as water do not count.- Returns:
- the discard chance
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static OreConfiguration of(List<OreConfiguration.TargetBlockState> targetStates, int size, float discardChanceOnAirExposure) Creates a new ore configuration.- Parameters:
targetStates- the list of targetssize- the size of the ore veindiscardChanceOnAirExposure- the discard chance- Returns:
- a new ore configuration
- Since:
- 3.0.0
-
target
Creates a new target block state.- Parameters:
target- the target rule teststate- the block state- Returns:
- a new target block state
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-