Enum Class Feature

java.lang.Object
java.lang.Enum<Feature>
ch.njol.skript.registrations.Feature
All Implemented Interfaces:
Serializable, Comparable<Feature>, Constable, Experiment

public enum Feature extends Enum<Feature> implements Experiment
Experimental feature toggles as provided by Skript itself.
  • Method Details

    • values

      public static Feature[] 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 Feature 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
    • registerAll

      public static void registerAll(SkriptAddon addon, ExperimentRegistry manager)
    • codeName

      public String codeName()
      Description copied from interface: Experiment
      A simple, printable code-name for this pattern for warnings and debugging. Ideally, this should be matched by one of the Experiment.pattern() entries.
      Specified by:
      codeName in interface Experiment
      Returns:
      The code name of this experiment.
    • phase

      public LifeCycle phase()
      Specified by:
      phase in interface Experiment
      Returns:
      The safety phase of this feature.
    • pattern

      public SkriptPattern pattern()
      Specified by:
      pattern in interface Experiment
      Returns:
      The compiled matching pattern for this experiment