Package dev.latvian.mods.kubejs.script
Enum Class ScriptType
- All Implemented Interfaces:
ScriptTypeHolder,ScriptTypePredicate,Serializable,Comparable<ScriptType>,Constable,Predicate<ScriptType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Lazy<ClassFilter> final ConsoleJSfinal Stringfinal Stringfinal Pathstatic final ScriptType[]Fields inherited from interface dev.latvian.mods.kubejs.script.ScriptTypePredicate
ALL, COMMON, STARTUP_OR_CLIENT, STARTUP_OR_SERVER -
Method Summary
Modifier and TypeMethodDescriptionbooleanisClient()booleanisServer()boolean@NotNull ScriptTypePredicatenegate()booleantest(ScriptType type) voidunload()static ScriptTypeReturns the enum constant of this class with the specified name.static ScriptType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STARTUP
-
SERVER
-
CLIENT
-
-
Field Details
-
VALUES
-
name
-
console
-
path
-
nameStrip
-
executor
-
classFilter
-
nativeEventListeners
public final Map<NativeEventWrapper.Listeners.Key,NativeEventWrapper.Listeners> nativeEventListeners -
fileWatcherThread
-
-
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
-
getLogFile
-
isClient
public boolean isClient() -
isServer
public boolean isServer() -
isStartup
public boolean isStartup() -
unload
@HideFromJS public void unload() -
test
- Specified by:
testin interfacePredicate<ScriptType>- Specified by:
testin interfaceScriptTypePredicate
-
getValidTypes
- Specified by:
getValidTypesin interfaceScriptTypePredicate
-
negate
- Specified by:
negatein interfacePredicate<ScriptType>
-
kjs$getScriptType
- Specified by:
kjs$getScriptTypein interfaceScriptTypeHolder
-