Interface SulfurCubeArchetypeRegistryEntry.ExplosionSettings

Enclosing interface:
SulfurCubeArchetypeRegistryEntry

@Experimental @NonExtendable public static interface SulfurCubeArchetypeRegistryEntry.ExplosionSettings
The explosion settings of a sulfur cube of this archetype.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Positive int
    Returns the amount of ticks needed once the sulfur cube is ignited before exploding.
    boolean
    Returns whether the explosion will produce fire on the ground.
    of(@NonNegative int power, boolean incendiary, @Positive int fuseTicks)
    Creates a new explosion settings instance based on the passed values.
    @NonNegative int
    Returns the radius of the explosion.
  • Method Details

    • power

      @NonNegative int power()
      Returns the radius of the explosion.
      Returns:
      the radius of the explosion
    • incendiary

      boolean incendiary()
      Returns whether the explosion will produce fire on the ground.
      Returns:
      whether the explosion will produce fire on the ground
    • fuseTicks

      @Positive int fuseTicks()
      Returns the amount of ticks needed once the sulfur cube is ignited before exploding.
      Returns:
      the amount of ticks needed once the sulfur cube is ignited before exploding
    • of

      @Contract(value="_, _, _ -> new", pure=true) static SulfurCubeArchetypeRegistryEntry.ExplosionSettings of(@NonNegative int power, boolean incendiary, @Positive int fuseTicks)
      Creates a new explosion settings instance based on the passed values.
      Parameters:
      power - the radius of the explosion, as returned by power()
      incendiary - whether the explosion will produce fire, as returned by incendiary()
      fuseTicks - the amount of ticks needed once the sulfur cube is ignited before exploding, as returned by fuseTicks()
      Returns:
      the created instance