Enum Class ItemModelResourceMode
- All Implemented Interfaces:
Serializable, Comparable<ItemModelResourceMode>, Constable
Selects the resource stack used to resolve an
ItemModelComponent.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUses Minecraft's active client resources, including enabled local and server-provided resource packs.Uses an isolated, lazily loaded copy of Minecraft's built-in resources. -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemModelResourceModeReturns the enum constant of this class with the specified name.static ItemModelResourceMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE_PACKS
Uses Minecraft's active client resources, including enabled local and server-provided resource packs. -
VANILLA_ONLY
Uses an isolated, lazily loaded copy of Minecraft's built-in resources.Custom namespaces and server-only item models intentionally resolve as missing models in this mode.
-
-
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
-