Package net.fabricmc.fabric.api.resource
Enum Class ResourcePackActivationType
java.lang.Object
java.lang.Enum<ResourcePackActivationType>
net.fabricmc.fabric.api.resource.ResourcePackActivationType
- All Implemented Interfaces:
Serializable,Comparable<ResourcePackActivationType>,Constable
Deprecated.
Represents the resource pack activation type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Always enabled.Deprecated.Enabled by default.Deprecated.Normal activation. -
Method Summary
Modifier and TypeMethodDescriptionorg.quiltmc.qsl.resource.loader.api.ResourcePackActivationTypeDeprecated.booleanDeprecated.Returns whether this resource pack will be enabled by default or not.static ResourcePackActivationTypeDeprecated.Returns the enum constant of this class with the specified name.static ResourcePackActivationType[]values()Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Deprecated.Normal activation. The user has full control over the activation of the resource pack. -
DEFAULT_ENABLED
Deprecated.Enabled by default. The user has still full control over the activation of the resource pack. -
ALWAYS_ENABLED
Deprecated.Always enabled. The user cannot disable the resource pack.
-
-
Method Details
-
values
Deprecated.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
Deprecated.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
-
isEnabledByDefault
public boolean isEnabledByDefault()Deprecated.Returns whether this resource pack will be enabled by default or not.- Returns:
trueif enabled by default, elsefalse
-
getQuiltEquivalent
public org.quiltmc.qsl.resource.loader.api.ResourcePackActivationType getQuiltEquivalent()Deprecated.
-
ResourcePackActivationTypeinstead.