Enum Class FirstPersonMode

java.lang.Object
java.lang.Enum<FirstPersonMode>
dev.kosmx.playerAnim.api.firstPerson.FirstPersonMode
All Implemented Interfaces:
Serializable, Comparable<FirstPersonMode>, Constable

public enum FirstPersonMode extends Enum<FirstPersonMode>
  • Enum Constant Details

    • NONE

      public static final FirstPersonMode NONE
      The animation does not decide first person mode, this way, the animation will be transparent in first person mode.
    • VANILLA

      public static final FirstPersonMode VANILLA
      Use the vanilla renderer, most of the time broken, if you use this, please check your animation
    • THIRD_PERSON_MODEL

      public static final FirstPersonMode THIRD_PERSON_MODEL
      Use the 3rd person player model (only arms/items) to render accurate first-person perspective
    • DISABLED

      public static final FirstPersonMode DISABLED
      First person animation is DISABLED, vanilla idle will be active.
  • Method Details

    • values

      public static FirstPersonMode[] 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 FirstPersonMode 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
    • isFirstPersonPass

      public static boolean isFirstPersonPass()
      Returns:
      is the current render pass a first person pass
    • setFirstPersonPass

      @Internal public static void setFirstPersonPass(boolean newValue)