Package xyz.srnyx.annoyingapi.events
Enum AdvancedPlayerMoveEvent.MovementType
- java.lang.Object
-
- java.lang.Enum<AdvancedPlayerMoveEvent.MovementType>
-
- xyz.srnyx.annoyingapi.events.AdvancedPlayerMoveEvent.MovementType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AdvancedPlayerMoveEvent.MovementType>
- Enclosing class:
- AdvancedPlayerMoveEvent
public static enum AdvancedPlayerMoveEvent.MovementType extends java.lang.Enum<AdvancedPlayerMoveEvent.MovementType>
The type of movement that the player has done
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTHThe player has changed both their position (X, Y, or Z) and their rotation (yaw or pitch)ROTATIONThe player has changed their rotation (yaw or pitch)TRANSLATIONThe player has changed their position (X, Y, or Z)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AdvancedPlayerMoveEvent.MovementTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AdvancedPlayerMoveEvent.MovementType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRANSLATION
public static final AdvancedPlayerMoveEvent.MovementType TRANSLATION
The player has changed their position (X, Y, or Z)
-
ROTATION
public static final AdvancedPlayerMoveEvent.MovementType ROTATION
The player has changed their rotation (yaw or pitch)
-
BOTH
public static final AdvancedPlayerMoveEvent.MovementType BOTH
The player has changed both their position (X, Y, or Z) and their rotation (yaw or pitch)
-
-
Method Detail
-
values
public static AdvancedPlayerMoveEvent.MovementType[] 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 (AdvancedPlayerMoveEvent.MovementType c : AdvancedPlayerMoveEvent.MovementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AdvancedPlayerMoveEvent.MovementType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-