- All Implemented Interfaces:
Serializable
,Comparable<MountType>
,Constable
A utility class for interpreting the value of the
mountType
field.- Since:
- 1.5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe "Griffon" mount.The "Jackal" mount.The player is not riding any mount.The "Raptor" mount.The "Roller Beetle" mount.The "Siege Turtle" mount.The "Skiff" mount.The "Skimmer" mount.The "Skyscale" mount.The "Springer" mount.Represents any unknown or unexpectedmountType
value.The "Warclaw" mount. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the numerical value of this mount type.static MountType
valueOf
(byte mountType) Returns the appropriateMountType
representation for the given numerical value.static MountType
valueOf
(int mountType) Returns the appropriateMountType
representation for the given numerical value.static MountType
Returns the enum constant of this class with the specified name.static MountType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Represents any unknown or unexpectedmountType
value.This is used as a fallback.
- Since:
- 1.5.0
-
NONE
-
JACKAL
-
GRIFFON
-
SPRINGER
-
SKIMMER
-
RAPTOR
-
ROLLERBEETLE
-
WARCLAW
-
SKYSCALE
-
SKIFF
-
SIEGETURTLE
-
-
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
-
valueOf
Returns the appropriateMountType
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
Returns the appropriateMountType
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 isUNKNOWN
- Since:
- 1.5.0
-