Enum Class ScriptRunConfiguration.RunKind

java.lang.Object
java.lang.Enum<ScriptRunConfiguration.RunKind>
com.blamejared.crafttweaker.api.zencode.scriptrun.ScriptRunConfiguration.RunKind
All Implemented Interfaces:
Serializable, Comparable<ScriptRunConfiguration.RunKind>, Constable
Enclosing class:
ScriptRunConfiguration

public static enum ScriptRunConfiguration.RunKind extends Enum<ScriptRunConfiguration.RunKind>
Indicates the kind of run that the IScriptRun will perform.
Since:
9.1.0
  • Enum Constant Details

    • SYNTAX_CHECK

      public static final ScriptRunConfiguration.RunKind SYNTAX_CHECK
      Indicates that the scripts will not be executed, rather only their syntax will be checked.
      Since:
      9.1.0
    • FORMAT

      public static final ScriptRunConfiguration.RunKind FORMAT
      Indicates that no script will be executed, but an automatic formatter will be applied, bringing them in line with the suggested coding style.
      Since:
      9.1.0
    • EXECUTE

      public static final ScriptRunConfiguration.RunKind EXECUTE
      Indicates that all scripts will be run and the various actions will be applied.
      Since:
      9.1.0
    • GAME_TEST

      public static final ScriptRunConfiguration.RunKind GAME_TEST
      Indicates that all scripts will be run and the various actions will be applied.

      Should only be used for game test scripts.

      Since:
      9.1.0
  • Method Details

    • values

      public static ScriptRunConfiguration.RunKind[] 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 ScriptRunConfiguration.RunKind 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