Class PlayerBreakBlockDisplayEvent

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

public class PlayerBreakBlockDisplayEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerBreakBlockDisplayEvent(org.bukkit.entity.Player player, ClickedBlockDisplay clicked)
    Event called when a player has clicked a block display entity
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.entity.BlockDisplay
    Gets the living block display entity that is about to be broken
    org.bukkit.block.BlockFace
    Gets the cardinal direction of the face that was clicked
    org.bukkit.Location
    Gets the location of the center of the clicked block display
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.entity.Player
    Gets the player who clicked the block display
    org.bukkit.Location
    Gets the location that exists on the surface of the clicked block that is the precise point that the player is looking at
    double
    Returns the number of blocks of distance from the surface of the block to the player's eye
    boolean
     
    void
    setCancelled(boolean b)
     

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • PlayerBreakBlockDisplayEvent

      public PlayerBreakBlockDisplayEvent(org.bukkit.entity.Player player, ClickedBlockDisplay clicked)
      Event called when a player has clicked a block display entity
  • Method Details

    • getPlayer

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

      public org.bukkit.entity.BlockDisplay getBlockDisplay()
      Gets the living block display entity that is about to be broken
      Returns:
    • getClickedBlockFace

      public org.bukkit.block.BlockFace getClickedBlockFace()
      Gets the cardinal direction of the face that was clicked
      Returns:
    • getPreciseClickLocation

      public org.bukkit.Location getPreciseClickLocation()
      Gets the location that exists on the surface of the clicked block that is the precise point that the player is looking at
      Returns:
    • getClickedLocation

      public org.bukkit.Location getClickedLocation()
      Gets the location of the center of the clicked block display
      Returns:
    • isCancelled

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

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

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

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

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