Enum Class PackInclusionType
- All Implemented Interfaces:
Serializable, Comparable<PackInclusionType>, Constable, net.minecraft.util.StringRepresentable
public enum PackInclusionType
extends Enum<PackInclusionType>
implements net.minecraft.util.StringRepresentable
Defines the activation and inclusion behavior for built-in mod data packs and resource packs.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe built-in pack is enabled by default upon world creation or client startup, but can still be manually disabled by the user.The built-in pack is registered as optional and disabled by default, allowing users to manually enable it via the pack selection screen or server configuration.The built-in pack is forcefully enabled at all times and cannot be disabled by the user. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PackInclusionType> Codec for serializing and deserializingPackInclusionTypeconstants by their lowercase identifier.Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the serialized string representation of this pack inclusion mode.static PackInclusionTypeReturns the enum constant of this class with the specified name.static PackInclusionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPTIONAL
The built-in pack is registered as optional and disabled by default, allowing users to manually enable it via the pack selection screen or server configuration. -
ACTIVE
The built-in pack is enabled by default upon world creation or client startup, but can still be manually disabled by the user. -
REQUIRED
The built-in pack is forcefully enabled at all times and cannot be disabled by the user.
-
-
Field Details
-
CODEC
Codec for serializing and deserializingPackInclusionTypeconstants by their lowercase identifier.
-
-
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
-
getSerializedName
Returns the serialized string representation of this pack inclusion mode.- Specified by:
getSerializedNamein interfacenet.minecraft.util.StringRepresentable- Returns:
- The lowercase identifier string.
-