Enum Class NexoriAfkActivitySource
java.lang.Object
java.lang.Enum<NexoriAfkActivitySource>
io.github.hyjn.nexori.plugin.api.minigame.NexoriAfkActivitySource
- All Implemented Interfaces:
Serializable, Comparable<NexoriAfkActivitySource>, Constable
Public source for a Nexori AFK state transition.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA public API call set or cleared the player AFK state.Nexori's local inactivity timer marked the player AFK.Player inventory activity marked the player active.Player gameplay input marked the player active.A runtime AFK policy change recalculated the player state.The transition source was not specified. -
Method Summary
Modifier and TypeMethodDescriptionstatic NexoriAfkActivitySourceReturns the enum constant of this class with the specified name.static NexoriAfkActivitySource[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The transition source was not specified. -
IDLE_TIMEOUT
Nexori's local inactivity timer marked the player AFK. -
PLAYER_INPUT
Player gameplay input marked the player active. -
INVENTORY_PACKET
Player inventory activity marked the player active. -
POLICY_CHANGE
A runtime AFK policy change recalculated the player state. -
EXTERNAL_API
A public API call set or cleared the player AFK state.
-
-
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
-