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.Resultplayer| Constructor and Description |
|---|
PlayerArmorChangeEvent(@NotNull Player player,
@NotNull PlayerArmorChangeEvent.SlotType slotType,
@Nullable ItemStack oldItem,
@Nullable ItemStack newItem) |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
@Nullable ItemStack |
getNewItem()
Gets the new item that's replacing the old
|
@Nullable ItemStack |
getOldItem()
Gets the existing item that's being replaced
|
@NotNull PlayerArmorChangeEvent.SlotType |
getSlotType()
Gets the type of slot being altered.
|
String |
toString() |
getPlayercallEvent, getEventName, isAsynchronouspublic PlayerArmorChangeEvent(@NotNull
@NotNull Player player,
@NotNull
@NotNull PlayerArmorChangeEvent.SlotType slotType,
@Nullable
@Nullable ItemStack oldItem,
@Nullable
@Nullable ItemStack newItem)
@NotNull public @NotNull PlayerArmorChangeEvent.SlotType getSlotType()
@Nullable public @Nullable ItemStack getOldItem()
@Nullable public @Nullable ItemStack getNewItem()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2022. All rights reserved.