Enum Class ScriptDiscoveryConfiguration.SuspiciousNamesBehavior

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

public static enum ScriptDiscoveryConfiguration.SuspiciousNamesBehavior extends Enum<ScriptDiscoveryConfiguration.SuspiciousNamesBehavior>
Specifies the behavior to be used when a file with a suspicious name is encountered.

A file is deemed to be with a suspicious name if its name ends with .zs.txt, as it indicates that the user has likely made a mistake when creating the file.

Since:
10.1.0
  • Enum Constant Details

  • Method Details

    • 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

      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