Class PlayerClickBlockDisplayEvent

java.lang.Object
org.bukkit.event.Event
me.c7dev.dexterity.api.events.PlayerClickBlockDisplayEvent
All Implemented Interfaces:
Cancellable

public class PlayerClickBlockDisplayEvent extends Event implements Cancellable
  • Constructor Details

  • Method Details

    • getPlayer

      public Player getPlayer()
      Gets the player who clicked the block display
      Returns:
    • getBlockDisplay

      public BlockDisplay getBlockDisplay()
      Gets the living block display entity
      Returns:
    • getBlockFace

      public BlockFace getBlockFace()
      Gets the cardinal direction of the face that was clicked
      Returns:
    • getPreciseClickLocation

      public Location getPreciseClickLocation()
      Gets the location that exists on the surface of the block that is the precise point that the player is looking at
      Returns:
    • getAction

      public Action getAction()
      Retrieves Action determining if player left or right clicked
      Returns:
    • getClickedDisplay

      public DexterityDisplay getClickedDisplay()
      Returns the DexterityDisplay if the clicked block display is part of one
      Returns:
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • getSurfaceNormal

      public Vector getSurfaceNormal()
      Returns a Vector that is perpendicular to the surface of the face of the block
      Returns:
    • getPreciseDistanceFromEye

      public double getPreciseDistanceFromEye()
      Returns the number of blocks of distance from the surface of the block to the player's eye
      Returns:
    • getOffsetFromFaceCenter

      public Vector getOffsetFromFaceCenter()
      Returns a vector relative to the face of the block display with the offset from the click location to the block display face center's location
      Returns:
    • setCancelled

      public void setCancelled(boolean b)
      Specified by:
      setCancelled in interface Cancellable
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()