Enum Class PlatformItemTransform

java.lang.Object
java.lang.Enum<PlatformItemTransform>
kr.toxicity.model.api.platform.PlatformItemTransform
All Implemented Interfaces:
Serializable, Comparable<PlatformItemTransform>, Constable

public enum PlatformItemTransform extends Enum<PlatformItemTransform>
Defines the display context for an item model.

These values correspond to the display settings in a Minecraft item model file.

Since:
2.0.0
  • Enum Constant Details

    • NONE

      public static final PlatformItemTransform NONE
      No specific transform.
      Since:
      2.0.0
    • THIRDPERSON_LEFTHAND

      public static final PlatformItemTransform THIRDPERSON_LEFTHAND
      Displayed in the left hand in third-person view.
      Since:
      2.0.0
    • THIRDPERSON_RIGHTHAND

      public static final PlatformItemTransform THIRDPERSON_RIGHTHAND
      Displayed in the right hand in third-person view.
      Since:
      2.0.0
    • FIRSTPERSON_LEFTHAND

      public static final PlatformItemTransform FIRSTPERSON_LEFTHAND
      Displayed in the left hand in first-person view.
      Since:
      2.0.0
    • FIRSTPERSON_RIGHTHAND

      public static final PlatformItemTransform FIRSTPERSON_RIGHTHAND
      Displayed in the right hand in first-person view.
      Since:
      2.0.0
    • GUI

      public static final PlatformItemTransform GUI
      Displayed in a GUI slot.
      Since:
      2.0.0
    • GROUND

      public static final PlatformItemTransform GROUND
      Displayed on the ground as an item entity.
      Since:
      2.0.0
    • FIXED

      public static final PlatformItemTransform FIXED
      Displayed in an item frame.
      Since:
      2.0.0
  • Method Details

    • values

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