Enum Class Action

java.lang.Object
java.lang.Enum<Action>
xyz.gmitch215.socketmc.util.input.Action
All Implemented Interfaces:
Serializable, Comparable<Action>, Constable

public enum Action extends Enum<Action>
Represents an action that was performed on a button.
  • Enum Constant Details

    • RELEASE

      public static final Action RELEASE
      This action is performed when a button is released.
    • PRESS

      public static final Action PRESS
      This action is performed when a button is pressed.
    • REPEAT

      public static final Action REPEAT
      This action is repeated when a button is held down (keyboard only).
  • Method Details

    • values

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