Enum ActionType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ActionType>

    public enum ActionType
    extends java.lang.Enum<ActionType>
    Various types of actions that a player can perform.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALL
      Wildcard.
      BREAK
      Breaking a block.
      INTERACT
      Non-destructively interacting with a block.
      PLACE
      Placing a block.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ActionType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ActionType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ALL

        public static final ActionType ALL
        Wildcard. If a player has permission to perform this ActionType, they have permission to perform any other ActionType.
      • PLACE

        public static final ActionType PLACE
        Placing a block.
      • BREAK

        public static final ActionType BREAK
        Breaking a block.
      • INTERACT

        public static final ActionType INTERACT
        Non-destructively interacting with a block. This includes things such as opening and closing doors, stepping on pressure plates, pressing a button, etc.
    • Method Detail

      • values

        public static ActionType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ActionType c : ActionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ActionType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null