Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ArmorEquipEvent extends Event implements Cancellable
- {
- private final Player p;
- private final EquipmentSlot slot;
- private final ItemStack item;
- public ArmorEquipEvent(final Player p, final ItemStack item, final EquipmentSlot slot)
- {
- this.p=p;
- this.slot=slot;
- this.item=item;
- }
- public Player getPlayer()
- {
- return p;
- }
- public ItemStack getItem()
- {
- return item;
- }
- public EquipmentSlot getSlot()
- {
- return slot;
- }
- private static final HandlerList handler=new HandlerList();
- @Override
- public HandlerList getHandlers()
- {
- return handler;
- }
- public static HandlerList getHandlerList()
- {
- return handler;
- }
- private boolean cancelled=false;
- @Override
- public boolean isCancelled()
- {
- return cancelled;
- }
- @Override
- public void setCancelled(boolean bln)
- {
- cancelled=bln;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement