Class PlayerArmorChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
com.destroystokyo.paper.event.player.PlayerArmorChangeEvent
Called when the player themselves change their armor items
Not currently called for environmental factors though it MAY BE IN THE FUTURE
-
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
ConstructorDescriptionPlayerArmorChangeEvent
(@NotNull Player player, @NotNull PlayerArmorChangeEvent.SlotType slotType, @NotNull ItemStack oldItem, @NotNull ItemStack newItem) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
Gets the new item that's replacing the oldGets the existing item that's being replacedGets the type of slot being altered.toString()
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
asynchronous, callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerArmorChangeEvent
-
-
Method Details
-
getSlotType
Gets the type of slot being altered.- Returns:
- type of slot being altered
-
getOldItem
Gets the existing item that's being replaced- Returns:
- old item
-
getNewItem
Gets the new item that's replacing the old- Returns:
- new item
-
toString
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-