Enum Class Action

java.lang.Object
java.lang.Enum<Action>
com.minecolonies.api.colony.permissions.Action
All Implemented Interfaces:
Serializable, Comparable<Action>, Constable

public enum Action extends Enum<Action>
Actions that can be performed in a colony.
  • Enum Constant Details

    • ACCESS_HUTS

      public static final Action ACCESS_HUTS
    • PLACE_HUTS

      public static final Action PLACE_HUTS
    • BREAK_HUTS

      public static final Action BREAK_HUTS
    • EDIT_PERMISSIONS

      public static final Action EDIT_PERMISSIONS
    • MANAGE_HUTS

      public static final Action MANAGE_HUTS
    • RECEIVE_MESSAGES

      public static final Action RECEIVE_MESSAGES
    • USE_SCAN_TOOL

      public static final Action USE_SCAN_TOOL
    • PLACE_BLOCKS

      public static final Action PLACE_BLOCKS
    • BREAK_BLOCKS

      public static final Action BREAK_BLOCKS
    • TOSS_ITEM

      public static final Action TOSS_ITEM
    • PICKUP_ITEM

      public static final Action PICKUP_ITEM
    • FILL_BUCKET

      public static final Action FILL_BUCKET
    • OPEN_CONTAINER

      public static final Action OPEN_CONTAINER
    • RIGHTCLICK_BLOCK

      public static final Action RIGHTCLICK_BLOCK
    • RIGHTCLICK_ENTITY

      public static final Action RIGHTCLICK_ENTITY
    • THROW_POTION

      public static final Action THROW_POTION
    • SHOOT_ARROW

      public static final Action SHOOT_ARROW
    • ATTACK_CITIZEN

      public static final Action ATTACK_CITIZEN
    • ATTACK_ENTITY

      public static final Action ATTACK_ENTITY
    • TELEPORT_TO_COLONY

      public static final Action TELEPORT_TO_COLONY
    • EXPLODE

      public static final Action EXPLODE
    • RALLY_GUARDS

      public static final Action RALLY_GUARDS
    • HURT_CITIZEN

      public static final Action HURT_CITIZEN
    • HURT_VISITOR

      public static final Action HURT_VISITOR
    • MAP_BORDER

      public static final Action MAP_BORDER
    • MAP_DEATHS

      public static final Action MAP_DEATHS
    • ACCESS_TOGGLEABLES

      public static final Action ACCESS_TOGGLEABLES
  • 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
    • getFlag

      public long getFlag()