Package net.risingworld.api.events.npc
Enum Class NpcTransformEvent.Trigger
- All Implemented Interfaces:
Serializable
,Comparable<NpcTransformEvent.Trigger>
,Constable
- Enclosing class:
NpcTransformEvent
Determines why the
NpcTransformEvent
was triggered exactly
(i.e what caused the npc to transform).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNpc was transformed through the Plugin API (i.e by a plugin)Npc was edited (e.g via command)Baby npc grows upPlayer interaction with npc, e.g shearing a sheep etc -
Method Summary
Modifier and TypeMethodDescriptionstatic NpcTransformEvent.Trigger
Returns the enum constant of this class with the specified name.static NpcTransformEvent.Trigger[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Growth
Baby npc grows up -
Interaction
Player interaction with npc, e.g shearing a sheep etc -
Edit
Npc was edited (e.g via command) -
API
Npc was transformed through the Plugin API (i.e by a plugin)
-
-
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
-