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
(Player player, PlayerArmorChangeEvent.SlotType slotType, ItemStack oldItem, ItemStack newItem) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Gets the new item that's replacing the oldGets the existing item that's being replacedGets the type of slot being altered.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerArmorChangeEvent
@Internal public PlayerArmorChangeEvent(Player player, PlayerArmorChangeEvent.SlotType slotType, ItemStack oldItem, ItemStack newItem)
-
-
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
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-