Package org.bukkit
Enum Class ExplosionResult
- All Implemented Interfaces:
- Serializable,- Comparable<ExplosionResult>,- Constable
Represents the outcome of an explosion.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionRepresents an explosion where all destroyed blocks drop their items.Represents an explosion where explosions cause only some blocks to drop.Represents an explosion where no change took place.Represents an explosion where a block change/update has happened.
- 
Method SummaryModifier and TypeMethodDescriptionstatic ExplosionResultReturns the enum constant of this class with the specified name.static ExplosionResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
KEEPRepresents an explosion where no change took place. This is the case whenGameRule.MOB_GRIEFINGis disabled.
- 
DESTROYRepresents an explosion where all destroyed blocks drop their items. This is the case whenGameRule.TNT_EXPLOSION_DROP_DECAYorGameRule.BLOCK_EXPLOSION_DROP_DECAYis disabled.
- 
DESTROY_WITH_DECAYRepresents an explosion where explosions cause only some blocks to drop.
- 
TRIGGER_BLOCKRepresents an explosion where a block change/update has happened. For example, when a wind charge is used it will cause nearby buttons, levers and bells to be activated.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-