Interface Explosion
- All Superinterfaces:
- Locatable
Represents an explosion in a 
World.- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic Explosion.Builderbuilder()Creates a newExplosion.Builderto build aExplosion.booleanGets whether the affected blocks have a chance to catch on fire.default doubleGets the relative strength of the knockback applied to nearby objects that can be knocked back.floatradius()Gets the radius of the explosion.default floatGets an indication of the randomness of the form of the explosion.default intGets a value that indicates the relative strength of an explosion.booleanGets whether the affected blocks should be destroyed on explosion.booleanGets whether this explosion will damage entities.booleanGets whether the explosion will play a smoke effect.Gets the sourceExplosiveof the explosion.Methods inherited from interface org.spongepowered.api.world.LocatableblockPosition, location, serverLocation, world
- 
Method Details- 
builderCreates a newExplosion.Builderto build aExplosion.- Returns:
- The new builder
 
- 
sourceExplosiveGets the sourceExplosiveof the explosion.- Returns:
- The source explosive or null if there is no source
 
- 
radiusfloat radius()Gets the radius of the explosion.- Returns:
- The radius
 
- 
canCauseFireboolean canCauseFire()Gets whether the affected blocks have a chance to catch on fire.- Returns:
- Whether the affected blocks can catch on fire
 
- 
shouldPlaySmokeboolean shouldPlaySmoke()Gets whether the explosion will play a smoke effect.- Returns:
- Whether the explosion will play smoke
 
- 
shouldBreakBlocksboolean shouldBreakBlocks()Gets whether the affected blocks should be destroyed on explosion.- Returns:
- Whether the affected blocks should be destroyed
 
- 
shouldDamageEntitiesboolean shouldDamageEntities()Gets whether this explosion will damage entities.- Returns:
- Whether the explosion will damage entities
 
- 
resolutiondefault int resolution()Gets a value that indicates the relative strength of an explosion.- Returns:
- The resolution of the explosion.
 
- 
randomnessdefault float randomness()Gets an indication of the randomness of the form of the explosion.This value indicates how close to being symmetrical the explosion is. A value of zero indicates a completely symmetrical blast (in all three dimensions). A larger value indicates a lower likelihood of symmetry. A value of one indicates the platform default. Note, this is a hint to the implementation. Implementations may not provide the means to produce semi-random form explosions. - Returns:
- The potential randomness of the form of the explosion.
 
- 
knockbackdefault double knockback()Gets the relative strength of the knockback applied to nearby objects that can be knocked back.Note that the default behavior and strength is not defined here. A return value of 1 simply indicates the default behavior which is implementation dependent. - Returns:
- The multiple by which the knockback of entities will be changed
 
 
-