Enum Class ActionType

java.lang.Object
java.lang.Enum<ActionType>
dev.foxikle.customnpcs.actions.ActionType
All Implemented Interfaces:
Serializable, Comparable<ActionType>, Constable

public enum ActionType extends Enum<ActionType>
All supported types of actions
  • Enum Constant Details

    • RUN_COMMAND

      public static final ActionType RUN_COMMAND
      Represents running a command. The argument syntax is as follows: label, args...
    • SEND_MESSAGE

      public static final ActionType SEND_MESSAGE
      Represents sending the player a message. The argument syntax is as follows: message...
    • DISPLAY_TITLE

      public static final ActionType DISPLAY_TITLE
      Represents sending the player a title. The argument syntax is as follows: fade_in, stay, fade_out, title...
    • ACTION_BAR

      public static final ActionType ACTION_BAR
      Represents sending the player an action bar. The argument syntax is as follows: message...
    • TOGGLE_FOLLOWING

      public static final ActionType TOGGLE_FOLLOWING
      Represents starting/stopping following the player. There are no arugments.
    • PLAY_SOUND

      public static final ActionType PLAY_SOUND
      Represents playing a sound for the player. The argument syntax is as follows: pitch, volume, sound_name
    • TELEPORT

      public static final ActionType TELEPORT
      Represents teleporting the player. The argument syntax is as follows: x, y, z, pitch, yaw
    • SEND_TO_SERVER

      public static final ActionType SEND_TO_SERVER
      Represents sending the player to a BungeeCord server. The argument syntax is as follows: Case_sensitive_Server_Name
    • ADD_EFFECT

      public static final ActionType ADD_EFFECT
      Represents giving an effect to the player. The argument syntax is as follows: duration, strength, hide_particles, effect
    • REMOVE_EFFECT

      public static final ActionType REMOVE_EFFECT
      Represents removing an effect to the player. The argument syntax is as follows: effect
    • GIVE_EXP

      public static final ActionType GIVE_EXP
      Represents giving a xp to the player. The argument syntax is as follows: amount, levels
    • REMOVE_EXP

      public static final ActionType REMOVE_EXP
      Represents removing a xp to the player. The argument syntax is as follows: amount, levels
  • Method Details

    • values

      public static ActionType[] 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

      public static ActionType valueOf(String name)
      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 name
      NullPointerException - if the argument is null