Serializable, Comparable<TNTPrimeEvent.PrimeReason>public static enum TNTPrimeEvent.PrimeReason extends Enum<TNTPrimeEvent.PrimeReason>
| Enum Constant | Description |
|---|---|
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 an
Entity shooting TNT
using a bow with Enchantment.ARROW_FIRE enchantment |
REDSTONE |
When redstone power triggered the TNT prime
|
| Modifier and Type | Method | Description |
|---|---|---|
static TNTPrimeEvent.PrimeReason |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static TNTPrimeEvent.PrimeReason[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TNTPrimeEvent.PrimeReason EXPLOSION
public static final TNTPrimeEvent.PrimeReason FIRE
public static final TNTPrimeEvent.PrimeReason ITEM
public static final TNTPrimeEvent.PrimeReason PROJECTILE
Entity shooting TNT
using a bow with Enchantment.ARROW_FIRE enchantmentpublic static final TNTPrimeEvent.PrimeReason REDSTONE
public static TNTPrimeEvent.PrimeReason[] values()
for (TNTPrimeEvent.PrimeReason c : TNTPrimeEvent.PrimeReason.values()) System.out.println(c);
public static TNTPrimeEvent.PrimeReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020. All rights reserved.