Package de.presti.ree6.api.events
Enum Class MusicPlayerStateChangeEvent.State
java.lang.Object
java.lang.Enum<MusicPlayerStateChangeEvent.State>
de.presti.ree6.api.events.MusicPlayerStateChangeEvent.State
- All Implemented Interfaces:
Serializable
,Comparable<MusicPlayerStateChangeEvent.State>
,Constable
- Enclosing class:
- MusicPlayerStateChangeEvent
public static enum MusicPlayerStateChangeEvent.State
extends Enum<MusicPlayerStateChangeEvent.State>
Enum used to store the current state of the music player.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe music player has encountered an error.The music player has finished playing a track.The music player is currently paused.The music player is currently playing a track.The Track has been added to the Queue.The Queue is empty.The music player is currently stopped. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MusicPlayerStateChangeEvent.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYING
The music player is currently playing a track. -
QUEUE_ADD
The Track has been added to the Queue. -
QUEUE_EMPTY
The Queue is empty. -
PAUSED
The music player is currently paused. -
STOPPED
The music player is currently stopped. -
FINISHED
The music player has finished playing a track. -
ERROR
The music player has encountered an error.
-
-
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
-