Enum Class ItemModelResourceMode

java.lang.Object
java.lang.Enum<ItemModelResourceMode>
com.render.api.gui.ItemModelResourceMode
All Implemented Interfaces:
Serializable, Comparable<ItemModelResourceMode>, Constable

public enum ItemModelResourceMode extends Enum<ItemModelResourceMode>
Selects the resource stack used to resolve an ItemModelComponent.
  • Enum Constant Details

    • ACTIVE_PACKS

      public static final ItemModelResourceMode ACTIVE_PACKS
      Uses Minecraft's active client resources, including enabled local and server-provided resource packs.
    • VANILLA_ONLY

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

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