Class ItemDestroyWithBlacklistEvent

java.lang.Object
com.sk89q.worldguard.blacklist.event.ItemDestroyWithBlacklistEvent
All Implemented Interfaces:
BlacklistEvent

public final class ItemDestroyWithBlacklistEvent extends Object
  • Constructor Details

    • ItemDestroyWithBlacklistEvent

      public ItemDestroyWithBlacklistEvent(@Nullable LocalPlayer player, com.sk89q.worldedit.math.BlockVector3 position, Target target)
      Construct the object.
      Parameters:
      player - The player associated with this event
      position - The position the event occurred at
      target - The target of the event
  • Method Details

    • getDescription

      public String getDescription()
      Description copied from interface: BlacklistEvent
      Get a short description such as "break" or "destroy with."
      Returns:
      The event description
    • getEventType

      public EventType getEventType()
      Description copied from interface: BlacklistEvent
      Get the event type.
      Returns:
      the type
    • getLoggedPosition

      public com.sk89q.worldedit.math.BlockVector3 getLoggedPosition()
      Description copied from interface: BlacklistEvent
      Get the position that should be logged.
      Specified by:
      getLoggedPosition in interface BlacklistEvent
      Returns:
      The position that be logged.
    • getLoggerMessage

      public String getLoggerMessage()
      Description copied from interface: BlacklistEvent
      Get a message for logger outputs.
      Returns:
      A logging message
    • getPlayer

      @Nullable public LocalPlayer getPlayer()
      Description copied from interface: BlacklistEvent
      Get the player.
      Specified by:
      getPlayer in interface BlacklistEvent
      Returns:
      The player associated with this event
    • getCauseName

      public String getCauseName()
      Description copied from interface: BlacklistEvent
      Get the cause name, which is usually the player name.
      Specified by:
      getCauseName in interface BlacklistEvent
      Returns:
      the cause name
    • getPosition

      public com.sk89q.worldedit.math.BlockVector3 getPosition()
      Description copied from interface: BlacklistEvent
      Get the position.
      Specified by:
      getPosition in interface BlacklistEvent
      Returns:
      The position of this event
    • getTarget

      public Target getTarget()
      Description copied from interface: BlacklistEvent
      Get the item type.
      Specified by:
      getTarget in interface BlacklistEvent
      Returns:
      The type associated with this event
    • getPlayerName

      protected String getPlayerName()