Class DeleteBannedItemEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
fr.andross.banitem.events.DeleteBannedItemEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class DeleteBannedItemEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable
Called when a banned item has been detected and should be deleted from the current inventory view of the player. Cancelling the event will cancel the delete process.
Version:
3.1
Author:
Andross
  • 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

    Constructors
    Constructor
    Description
    DeleteBannedItemEvent(org.bukkit.entity.Player who, BannedItem bannedItem)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The banned item involved
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    boolean
     
    void
    setCancelled(boolean cancel)
     

    Methods inherited from class org.bukkit.event.player.PlayerEvent

    getPlayer

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DeleteBannedItemEvent

      public DeleteBannedItemEvent(@NotNull org.bukkit.entity.Player who, @NotNull BannedItem bannedItem)
  • Method Details

    • getBannedItem

      @NotNull public BannedItem getBannedItem()
      The banned item involved
      Returns:
      the banned item
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

      @NotNull public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      @NotNull public static org.bukkit.event.HandlerList getHandlerList()