Enum Class CosmeticMoment
- All Implemented Interfaces:
Serializable,Comparable<CosmeticMoment>,Constable
A moment of a match at which Zentrix triggers an addon's cosmetic type, through
CosmeticHandler.onTrigger(dev.itsharshxd.zentrix.api.cosmetics.CosmeticTrigger). A type only hears the moments its
definition lists. Spectators trigger nothing but
their own DEATH and GAME_LEAVE.- Since:
- 1.11.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe player died in the match;CosmeticTrigger.other()is the killer, when there is one, andCosmeticTrigger.location()where they died.The player joined a match's waiting lobby, or rejoined a running match.The match is over for the player: they left it, or it ended.The match started with the player in it.The player opened their glider, from the dragon bus or a sky drop.The player killed another player;CosmeticTrigger.other()is the victim.The player's side won the match. -
Method Summary
Modifier and TypeMethodDescriptionstatic CosmeticMomentReturns the enum constant of this class with the specified name.static CosmeticMoment[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GAME_JOIN
The player joined a match's waiting lobby, or rejoined a running match. -
GAME_START
The match started with the player in it. -
GLIDE
The player opened their glider, from the dragon bus or a sky drop. -
KILL
The player killed another player;CosmeticTrigger.other()is the victim. -
DEATH
The player died in the match;CosmeticTrigger.other()is the killer, when there is one, andCosmeticTrigger.location()where they died. -
VICTORY
The player's side won the match. -
GAME_LEAVE
The match is over for the player: they left it, or it ended. Heard once by every player who joined or started the match while online, eliminated ones included, so anything kept up sinceGAME_JOINorGAME_STARTcan be undone. Players who left the server may miss it;CosmeticHandler.onUnregister()and the addon's own quit handling cover them.
-
-
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
-