Enum Class MountType

java.lang.Object
java.lang.Enum<MountType>
com.gw2tb.gw2ml.MountType
All Implemented Interfaces:
Serializable, Comparable<MountType>, Constable

public enum MountType extends Enum<MountType>
A utility class for interpreting the value of the mountType field.
Since:
1.5.0
  • Enum Constant Details

    • UNKNOWN

      public static final MountType UNKNOWN
      Represents any unknown or unexpected mountType value.

      This is used as a fallback.

      Since:
      1.5.0
    • NONE

      public static final MountType NONE
      The player is not riding any mount.
      Since:
      1.5.0
    • JACKAL

      public static final MountType JACKAL
      The "Jackal" mount.
      Since:
      1.5.0
    • GRIFFON

      public static final MountType GRIFFON
      The "Griffon" mount.
      Since:
      1.5.0
    • SPRINGER

      public static final MountType SPRINGER
      The "Springer" mount.
      Since:
      1.5.0
    • SKIMMER

      public static final MountType SKIMMER
      The "Skimmer" mount.
      Since:
      1.5.0
    • RAPTOR

      public static final MountType RAPTOR
      The "Raptor" mount.
      Since:
      1.5.0
    • ROLLERBEETLE

      public static final MountType ROLLERBEETLE
      The "Roller Beetle" mount.
      Since:
      1.5.0
    • WARCLAW

      public static final MountType WARCLAW
      The "Warclaw" mount.
      Since:
      1.5.0
    • SKYSCALE

      public static final MountType SKYSCALE
      The "Skyscale" mount.
      Since:
      1.5.0
    • SKIFF

      public static final MountType SKIFF
      The "Skiff" mount.
      Since:
      2.1.0
    • SIEGETURTLE

      public static final MountType SIEGETURTLE
      The "Siege Turtle" mount.
      Since:
      2.1.0
  • Method Details

    • values

      public static MountType[] 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 MountType 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
    • valueOf

      public static MountType valueOf(byte mountType)
      Returns the appropriate MountType representation for the given numerical value.

      If the given value does not correspond to any known MountType, UNKNOWN is returned.

      Parameters:
      mountType - the map type to search
      Returns:
      the appropriate MountType representation for the given numerical value
      Since:
      2.1.0
    • valueOf

      public static MountType valueOf(int mountType)
      Returns the appropriate MountType representation for the given numerical value.

      If the given value does not correspond to any known MountType, UNKNOWN is returned.

      Parameters:
      mountType - the map type to search
      Returns:
      the appropriate MountType representation for the given numerical value
      Since:
      2.1.0
    • numericalValue

      public long numericalValue()
      Returns the numerical value of this mount type.

      This is the same value as the value returned by MumbleLink.Context.getMountType().

      Returns:
      the numerical value of this mount type
      Throws:
      IllegalArgumentException - if this is UNKNOWN
      Since:
      1.5.0