Class PlayerChangeCosmeticEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.cosmetics.event.PlayerChangeCosmeticEvent
- All Implemented Interfaces:
Cancellable
Gets called when a player changes a cosmetic.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerChangeCosmeticEvent(Player player, CosmeticPlayer playerData, CosmeticItem newCosmetic) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerListGets the cosmetic item the player is trying to change to.Gets the loaded cosmetic player data of the player.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
PlayerChangeCosmeticEvent
public PlayerChangeCosmeticEvent(Player player, CosmeticPlayer playerData, CosmeticItem newCosmetic)
-
-
Method Details
-
getPlayerData
Gets the loaded cosmetic player data of the player.- Returns:
- The loaded cosmetic player data of the player.
-
getNewCosmetic
Gets the cosmetic item the player is trying to change to.- Returns:
- The cosmetic item the player is trying to change to.
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-