Enum Class Capability

java.lang.Object
java.lang.Enum<Capability>
com.sk89q.worldedit.extension.platform.Capability
All Implemented Interfaces:
Serializable, Comparable<Capability>, Constable

public enum Capability extends Enum<Capability>
A collection of capabilities that a Platform may support.
  • Enum Constant Details

    • GAME_HOOKS

      public static final Capability GAME_HOOKS
      The capability of registering game hooks to catch events such as a player clicking a block.
    • CONFIGURATION

      public static final Capability CONFIGURATION
      The capability of providing configuration.
    • USER_COMMANDS

      public static final Capability USER_COMMANDS
      The capability of handling user commands entered in chat or console.
    • PERMISSIONS

      public static final Capability PERMISSIONS
      The capability of a platform to assess whether a given Actor has sufficient authorization to perform a task.
    • WORLDEDIT_CUI

      public static final Capability WORLDEDIT_CUI
      The capability of a platform to dispatch WorldEditCUI events.
    • WORLD_EDITING

      public static final Capability WORLD_EDITING
      The capability of a platform to perform modifications to a world.
  • Method Details

    • values

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