Package redempt.redlib.enchants.events
Class PlayerChangedArmorEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
redempt.redlib.enchants.events.PlayerChangedArmorEvent
public class PlayerChangedArmorEvent
extends org.bukkit.event.player.PlayerEvent
Called when a player changes any piece of armor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerChangedArmorEvent
(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack[] previous, org.bukkit.inventory.ItemStack[] current) Constructs a new PlayerChangedArmorEvent -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.inventory.ItemStack[]
org.bukkit.inventory.ItemStack[]
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerChangedArmorEvent
public PlayerChangedArmorEvent(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack[] previous, org.bukkit.inventory.ItemStack[] current) Constructs a new PlayerChangedArmorEvent- Parameters:
player
- The Player who changed their armorprevious
- The armor the Player was previously wearingcurrent
- The armor the Player is now wearing
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getPreviousArmor
public org.bukkit.inventory.ItemStack[] getPreviousArmor()- Returns:
- The armor the Player was previously wearing
-
getNewArmor
public org.bukkit.inventory.ItemStack[] getNewArmor()- Returns:
- The armor the Player is now wearing
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-