Package com.cryptomorin.xseries
Enum NMSExtras.Animation
- java.lang.Object
-
- java.lang.Enum<NMSExtras.Animation>
-
- com.cryptomorin.xseries.NMSExtras.Animation
-
- All Implemented Interfaces:
Serializable,Comparable<NMSExtras.Animation>
- Enclosing class:
- NMSExtras
public static enum NMSExtras.Animation extends Enum<NMSExtras.Animation>
Order of this enum should not be changed.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRITICAL_EFFECTHURTLEAVE_BEDMAGIC_CRITICAL_EFFECTSWING_MAIN_ARMSWING_OFF_HAND
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NMSExtras.AnimationvalueOf(String name)Returns the enum constant of this type with the specified name.static NMSExtras.Animation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SWING_MAIN_ARM
public static final NMSExtras.Animation SWING_MAIN_ARM
-
HURT
public static final NMSExtras.Animation HURT
-
LEAVE_BED
public static final NMSExtras.Animation LEAVE_BED
-
SWING_OFF_HAND
public static final NMSExtras.Animation SWING_OFF_HAND
-
CRITICAL_EFFECT
public static final NMSExtras.Animation CRITICAL_EFFECT
-
MAGIC_CRITICAL_EFFECT
public static final NMSExtras.Animation MAGIC_CRITICAL_EFFECT
-
-
Method Detail
-
values
public static NMSExtras.Animation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NMSExtras.Animation c : NMSExtras.Animation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NMSExtras.Animation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-