public class PlayerArmorChangeEvent extends PlayerEvent
Not currently called for environmental factors though it MAY BE IN THE FUTURE
Modifier and Type | Class and Description |
---|---|
static class |
PlayerArmorChangeEvent.SlotType |
Event.Result
player
Constructor and Description |
---|
PlayerArmorChangeEvent(Player player,
PlayerArmorChangeEvent.SlotType slotType,
ItemStack oldItem,
ItemStack newItem) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
ItemStack |
getNewItem()
Gets the new item that's replacing the old
|
ItemStack |
getOldItem()
Gets the existing item that's being replaced
|
PlayerArmorChangeEvent.SlotType |
getSlotType()
Gets the type of slot being altered.
|
String |
toString() |
getPlayer
callEvent, getEventName, isAsynchronous
public PlayerArmorChangeEvent(@NotNull Player player, @NotNull PlayerArmorChangeEvent.SlotType slotType, @Nullable ItemStack oldItem, @Nullable ItemStack newItem)
@NotNull public PlayerArmorChangeEvent.SlotType getSlotType()
@Nullable public ItemStack getOldItem()
@Nullable public ItemStack getNewItem()
@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.