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 TypeMethodDescription@Positive intReturns the amount of ticks needed once the sulfur cube is ignited before exploding.booleanReturns 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 intpower()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 bypower()incendiary- whether the explosion will produce fire, as returned byincendiary()fuseTicks- the amount of ticks needed once the sulfur cube is ignited before exploding, as returned byfuseTicks()- Returns:
- the created instance
-