Enum Class TargetType
- All Implemented Interfaces:
Serializable
,Comparable<TargetType>
,Constable
The possible values for an enchantment's "hostTargetType".
See EventTriggerArg.HOST_TARGET_TYPE
for more about host
target types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the trigger doesn't fire if theEntityReference.EVENT_SOURCE
is this trigger's host.Indicates that the trigger doesn't fire if theEntityReference.EVENT_SOURCE
is this trigger's host's source card.Indicates that the trigger doesn't fire if theEntityReference.EVENT_TARGET
is this trigger's host.Indicates that the trigger doesn't fire if theEntityReference.EVENT_TARGET
is this trigger's host's source card.Indicates that the trigger fires only if theEntityReference.EVENT_SOURCE
is this trigger's host.Indicates that the trigger fires only if theEntityReference.EVENT_TARGET
is this trigger's host's source card.Indicates that the trigger fires only if theEntityReference.EVENT_TARGET
is this trigger's host. -
Method Summary
Modifier and TypeMethodDescriptionstatic TargetType
Returns the enum constant of this class with the specified name.static TargetType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE_AS_TARGET
Indicates that the trigger doesn't fire if theEntityReference.EVENT_TARGET
is this trigger's host. -
IGNORE_AS_SOURCE
Indicates that the trigger doesn't fire if theEntityReference.EVENT_SOURCE
is this trigger's host. -
IGNORE_AS_SOURCE_CARD
Indicates that the trigger doesn't fire if theEntityReference.EVENT_SOURCE
is this trigger's host's source card. -
IGNORE_AS_TARGET_CARD
Indicates that the trigger doesn't fire if theEntityReference.EVENT_TARGET
is this trigger's host's source card. -
IGNORE_OTHER_TARGETS
Indicates that the trigger fires only if theEntityReference.EVENT_TARGET
is this trigger's host. -
IGNORE_OTHER_TARGET_CARDS
Indicates that the trigger fires only if theEntityReference.EVENT_TARGET
is this trigger's host's source card. -
IGNORE_OTHER_SOURCES
Indicates that the trigger fires only if theEntityReference.EVENT_SOURCE
is this trigger's host.
-
-
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
-