Enum Class Wearing
- All Implemented Interfaces:
Serializable
,Comparable<Wearing>
,Constable
Different position on the body that can wear clothes of some kind.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Wearing
get
(int aVal) Recreates the constants from an integer.static boolean
Receives an integer and checks to see that the Wearing is a part of it.static Wearing
Provides some parsing, a string is translated to the enum in question.static Integer
returnValue
(String set) returnWearings
(Integer aVal) Receives an integer and returns a list of Wieldings to correspond.int
toInt()
Returns the numerical representation of the format.toString()
Returns the name of the format.static Wearing
Returns the enum constant of this class with the specified name.static Wearing[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ON_HEAD
-
ON_NECK
-
ON_TORSO
-
ON_ARMS
-
ON_LEFT_WRIST
-
ON_RIGHT_WRIST
-
ON_LEFT_FINGER
-
ON_RIGHT_FINGER
-
ON_FEET
-
ON_HANDS
-
FLOATING_NEARBY
-
ON_WAIST
-
ON_LEGS
-
ON_EYES
-
ON_EARS
-
ABOUT_BODY
-
-
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
-
get
Recreates the constants from an integer. An integer value of 0 causes a null pointer to be returned.- Parameters:
aVal
- the integer corresponding to the constant.- Returns:
- the constant object
- Throws:
RuntimeException
- in case the integer provided does not correspond to any of the available objects.
-
parse
Provides some parsing, a string is translated to the enum in question. For example "neck" will return Wearing.NECK;- Parameters:
aVal
- the string to be parsed- Returns:
- the constant object. Will return null, if a faulty aval is provided that does not map to any of the enums.
-
isIn
-
toString
-
toInt
public int toInt()Returns the numerical representation of the format.- Returns:
- identification integer.
-
returnWearings
-
returnValue
-