Interface GeodeCrackSettings

All Superinterfaces:
Wrapper

@NullMarked @AsOf("3.0.0") public interface GeodeCrackSettings extends Wrapper
The configuration of the crack on a geode, which forms the opening exposing its interior.
Since:
3.0.0
See Also:
  • Method Details

    • generateCrackChance

      @AsOf("3.0.0") double generateCrackChance()
      The probability for generating a crack. Value between 0.0 and 1.0.
      Returns:
      the crack generation chance
      Since:
      3.0.0
    • baseCrackSize

      @AsOf("3.0.0") double baseCrackSize()
      The base size of the crack. Value between 0.0 and 5.0.
      Returns:
      the base crack size
      Since:
      3.0.0
    • crackPointOffset

      @AsOf("3.0.0") int crackPointOffset()
      The offset of the crack point. Value between 0 and 10.
      Returns:
      the crack point offset
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default GeodeCrackSettings.Builder 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 crack
      baseCrackSize - the base size of the crack
      crackPointOffset - the offset of the crack point
      Returns:
      a new geode crack settings
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static GeodeCrackSettings.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0
    • decode

      @Internal static GeodeCrackSettings decode(Object minecraftSettings)