public class PlayerArmorChangeEvent extends PlayerEvent
Not currently called for environmental factors though it MAY BE IN THE FUTURE
| Modifier and Type | Class | Description | 
|---|---|---|
| static class  | PlayerArmorChangeEvent.SlotType | 
Event.Resultplayer| Constructor | Description | 
|---|---|
| PlayerArmorChangeEvent(Player player,
                      PlayerArmorChangeEvent.SlotType slotType,
                      ItemStack oldItem,
                      ItemStack newItem) | 
| Modifier and Type | Method | 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. | 
| java.lang.String | toString() | 
callEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPlayerpublic PlayerArmorChangeEvent(Player player, PlayerArmorChangeEvent.SlotType slotType, ItemStack oldItem, ItemStack newItem)
@Nonnull public PlayerArmorChangeEvent.SlotType getSlotType()
@Nullable public ItemStack getOldItem()
@Nullable public ItemStack getNewItem()
public java.lang.String toString()
toString in class java.lang.Objectpublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.