Class LoggingPlayerInteractEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerInteractEvent
com.sk89q.worldguard.bukkit.event.debug.LoggingPlayerInteractEvent
All Implemented Interfaces:
CancelLogging, org.bukkit.event.Cancellable

public class LoggingPlayerInteractEvent extends org.bukkit.event.player.PlayerInteractEvent implements CancelLogging
  • 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.PlayerInteractEvent

    action, blockClicked, blockFace, item

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

    player
  • Constructor Summary

    Constructors
    Constructor
    Description
    LoggingPlayerInteractEvent(org.bukkit.entity.Player who, org.bukkit.event.block.Action action, org.bukkit.inventory.ItemStack item, org.bukkit.block.Block clickedBlock, org.bukkit.block.BlockFace clickedFace)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get an immutable list of cancels.
    void
    setCancelled(boolean cancel)
     
    void
    setUseInteractedBlock(org.bukkit.event.Event.Result useInteractedBlock)
     
    void
    setUseItemInHand(org.bukkit.event.Event.Result useItemInHand)
     

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

    getAction, getBlockFace, getClickedBlock, getClickedPosition, getHand, getHandlerList, getHandlers, getInteractionPoint, getItem, getMaterial, hasBlock, hasItem, isBlockInHand, isCancelled, useInteractedBlock, useItemInHand

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

    getPlayer

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.event.Cancellable

    isCancelled
  • Constructor Details

    • LoggingPlayerInteractEvent

      public LoggingPlayerInteractEvent(org.bukkit.entity.Player who, org.bukkit.event.block.Action action, org.bukkit.inventory.ItemStack item, org.bukkit.block.Block clickedBlock, org.bukkit.block.BlockFace clickedFace)
  • Method Details

    • getCancels

      public List<CancelAttempt> getCancels()
      Description copied from interface: CancelLogging
      Get an immutable list of cancels.
      Specified by:
      getCancels in interface CancelLogging
      Returns:
      An immutable list
    • setUseInteractedBlock

      public void setUseInteractedBlock(org.bukkit.event.Event.Result useInteractedBlock)
      Overrides:
      setUseInteractedBlock in class org.bukkit.event.player.PlayerInteractEvent
    • setUseItemInHand

      public void setUseItemInHand(org.bukkit.event.Event.Result useItemInHand)
      Overrides:
      setUseItemInHand in class org.bukkit.event.player.PlayerInteractEvent
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Overrides:
      setCancelled in class org.bukkit.event.player.PlayerInteractEvent