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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE
Indicates that any file with a suspicious name should be ignored.- Since:
- 10.1.0
-
WARN
Indicates that any file with a suspicious name should raise a warning in the logs, but should otherwise be ignored for the purposes of loading.- Since:
- 10.1.0
-
-
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 nameNullPointerException- if the argument is null
-