Package org.bukkit
Enum Class ExplosionResult
- All Implemented Interfaces:
Serializable
,Comparable<ExplosionResult>
,Constable
Represents the outcome of an explosion.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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 Summary
Modifier and TypeMethodDescriptionstatic ExplosionResult
Returns 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
-
KEEP
Represents an explosion where no change took place. This is the case whenGameRule.MOB_GRIEFING
is disabled. -
DESTROY
Represents an explosion where all destroyed blocks drop their items. This is the case whenGameRule.TNT_EXPLOSION_DROP_DECAY
orGameRule.BLOCK_EXPLOSION_DROP_DECAY
is disabled. -
DESTROY_WITH_DECAY
Represents an explosion where explosions cause only some blocks to drop. -
TRIGGER_BLOCK
Represents 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
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-