Enum Class TNTPrimeEvent.PrimeReason
java.lang.Object
java.lang.Enum<TNTPrimeEvent.PrimeReason>
com.destroystokyo.paper.event.block.TNTPrimeEvent.PrimeReason
- All Implemented Interfaces:
Serializable
,Comparable<TNTPrimeEvent.PrimeReason>
,Constable
- Enclosing class:
TNTPrimeEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhen TNT prime was caused by other explosion (chain reaction)When TNT prime was caused by fireWhen TNT prime was caused by anEntity
shooting TNT using a bow withEnchantment.FLAME
enchantmentWhen redstone power triggered the TNT prime -
Method Summary
Modifier and TypeMethodDescriptionstatic TNTPrimeEvent.PrimeReason
Returns the enum constant of this class with the specified name.static TNTPrimeEvent.PrimeReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXPLOSION
When TNT prime was caused by other explosion (chain reaction) -
FIRE
When TNT prime was caused by fire -
ITEM
-
PROJECTILE
When TNT prime was caused by anEntity
shooting TNT using a bow withEnchantment.FLAME
enchantment -
REDSTONE
When redstone power triggered the TNT prime
-
-
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
-