public enum CancelReason extends Enum<CancelReason>
Enum Constant and Description |
---|
NPC_DESPAWNED |
PLUGIN |
REPLACE |
STUCK |
TARGET_DIED |
TARGET_MOVED_WORLD |
Modifier and Type | Method and Description |
---|---|
static CancelReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CancelReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CancelReason NPC_DESPAWNED
public static final CancelReason PLUGIN
public static final CancelReason REPLACE
public static final CancelReason STUCK
public static final CancelReason TARGET_DIED
public static final CancelReason TARGET_MOVED_WORLD
public static CancelReason[] values()
for (CancelReason c : CancelReason.values()) System.out.println(c);
public static CancelReason 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 © 2021. All rights reserved.