Interface GeodeCrackSettings
- All Superinterfaces:
Wrapper
The configuration of the crack on a geode, which forms the opening exposing its interior.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondoubleThe base size of the crack.static GeodeCrackSettings.Builderbuilder()Creates a new builder.intThe offset of the crack point.static GeodeCrackSettingsdoubleThe probability for generating a crack.static GeodeCrackSettingsof(double generateCrackChance, double baseCrackSize, int crackPointOffset) Creates a new geode crack settings.default GeodeCrackSettings.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
generateCrackChance
The probability for generating a crack. Value between 0.0 and 1.0.- Returns:
- the crack generation chance
- Since:
- 3.0.0
-
baseCrackSize
The base size of the crack. Value between 0.0 and 5.0.- Returns:
- the base crack size
- Since:
- 3.0.0
-
crackPointOffset
The offset of the crack point. Value between 0 and 10.- Returns:
- the crack point offset
- 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 GeodeCrackSettings of(double generateCrackChance, double baseCrackSize, int crackPointOffset) Creates a new geode crack settings.- Parameters:
generateCrackChance- the probability for generating a crackbaseCrackSize- the base size of the crackcrackPointOffset- the offset of the crack point- Returns:
- a new geode crack settings
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-
decode
-