Enum Class PackInclusionType

java.lang.Object
java.lang.Enum<PackInclusionType>
johnsmith.enchantmentcore.api.config.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 Constants
    Enum Constant
    Description
    The 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

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<PackInclusionType>
    Codec for serializing and deserializing PackInclusionType constants by their lowercase identifier.

    Fields inherited from interface net.minecraft.util.StringRepresentable

    PRE_BUILT_MAP_THRESHOLD
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    Returns the serialized string representation of this pack inclusion mode.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • OPTIONAL

      public static final PackInclusionType 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

      public static final PackInclusionType 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

      public static final PackInclusionType REQUIRED
      The built-in pack is forcefully enabled at all times and cannot be disabled by the user.
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<PackInclusionType> CODEC
      Codec for serializing and deserializing PackInclusionType constants by their lowercase identifier.
  • Method Details

    • values

      public static PackInclusionType[] 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

      public static PackInclusionType valueOf(String name)
      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
    • getSerializedName

      @NotNull public @NotNull String getSerializedName()
      Returns the serialized string representation of this pack inclusion mode.
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable
      Returns:
      The lowercase identifier string.