Class CosmeticOwnershipChangeEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.cosmetics.CosmeticOwnershipChangeEvent
Called after a change to what a player owns or chose was stored: a grant or revocation by an
administrator or addon, a choice in the cosmetics menu or through the API, a timed cosmetic
running out, or ownership imported from MatrixGliders. Only fired when something actually
changed. The player may be offline.
Only for built-in categories, so getCategory() always has one; changes to an addon's
types are not reported here.
Main thread; only fired while a listener is registered.
- Since:
- 1.8.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhat made the change.Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionCosmeticOwnershipChangeEvent(@NotNull UUID playerId, @NotNull CosmeticChange change) CosmeticOwnershipChangeEvent(@NotNull UUID playerId, @NotNull CosmeticChange change, @NotNull CosmeticOwnershipChangeEvent.Cause cause) -
Method Summary
Modifier and TypeMethodDescription@NotNull CosmeticCategoryThe category that changed.@NotNull CosmeticOwnershipChangeEvent.CausegetCause()What made the change.@NotNull CosmeticChangeThe cosmetics before and after.static @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.@NotNull UUIDThe player whose cosmetics changed.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
CosmeticOwnershipChangeEvent
public CosmeticOwnershipChangeEvent(@NotNull @NotNull UUID playerId, @NotNull @NotNull CosmeticChange change) -
CosmeticOwnershipChangeEvent
public CosmeticOwnershipChangeEvent(@NotNull @NotNull UUID playerId, @NotNull @NotNull CosmeticChange change, @NotNull @NotNull CosmeticOwnershipChangeEvent.Cause cause) - Since:
- 1.9.0
-
-
Method Details
-
getPlayerId
The player whose cosmetics changed. -
getCategory
The category that changed. -
getChange
The cosmetics before and after. -
getCause
What made the change.- Since:
- 1.9.0
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:ZentrixEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixEvent- Returns:
- The handler list
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-