Package dev.foxikle.customnpcs.actions
Enum Class ActionType
- All Implemented Interfaces:
Serializable
,Comparable<ActionType>
,Constable
All supported types of actions
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents sending the player an action bar.Represents giving an effect to the player.Represents sending the player a title.Represents giving a xp to the player.Represents playing a sound for the player.Represents removing an effect to the player.Represents removing a xp to the player.Represents running a command.Represents sending the player a message.Represents sending the player to a BungeeCord server.Represents teleporting the player.Represents starting/stopping following the player. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionType
Returns the enum constant of this class with the specified name.static ActionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUN_COMMAND
Represents running a command. The argument syntax is as follows: label, args... -
SEND_MESSAGE
Represents sending the player a message. The argument syntax is as follows: message... -
DISPLAY_TITLE
Represents sending the player a title. The argument syntax is as follows: fade_in, stay, fade_out, title... -
ACTION_BAR
Represents sending the player an action bar. The argument syntax is as follows: message... -
TOGGLE_FOLLOWING
Represents starting/stopping following the player. There are no arugments. -
PLAY_SOUND
Represents playing a sound for the player. The argument syntax is as follows: pitch, volume, sound_name -
TELEPORT
Represents teleporting the player. The argument syntax is as follows: x, y, z, pitch, yaw -
SEND_TO_SERVER
Represents sending the player to a BungeeCord server. The argument syntax is as follows: Case_sensitive_Server_Name -
ADD_EFFECT
Represents giving an effect to the player. The argument syntax is as follows: duration, strength, hide_particles, effect -
REMOVE_EFFECT
Represents removing an effect to the player. The argument syntax is as follows: effect -
GIVE_EXP
Represents giving a xp to the player. The argument syntax is as follows: amount, levels -
REMOVE_EXP
Represents removing a xp to the player. The argument syntax is as follows: amount, levels
-
-
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
-