Class DataBlockMoveEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
redempt.redlib.blockdata.events.DataBlockMoveEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class DataBlockMoveEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable
Called when a DataBlock is moved
  • 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.block.BlockEvent

    block
  • Constructor Summary

    Constructors
    Constructor
    Description
    DataBlockMoveEvent(DataBlock db, org.bukkit.Location loc)
    Construct a DataBlockMoveEvent
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.Location
     
    boolean
    Gets the cancellation state of this event.
    void
    setCancelled(boolean cancel)
    Sets the cancellation state of this event.

    Methods inherited from class org.bukkit.event.block.BlockEvent

    getBlock

    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

    • DataBlockMoveEvent

      public DataBlockMoveEvent(DataBlock db, org.bukkit.Location loc)
      Construct a DataBlockMoveEvent
      Parameters:
      db - The DataBlock
      loc - The location the DataBlock is being moved to
  • Method Details

    • getHandlerList

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

      public DataBlock getDataBlock()
      Returns:
      The DataBlock that is moving
    • getTo

      public org.bukkit.Location getTo()
      Returns:
      The location the DataBlock will be moved to
    • isCancelled

      public boolean isCancelled()
      Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Returns:
      true if this event is cancelled
    • setCancelled

      public void setCancelled(boolean cancel)
      Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Parameters:
      cancel - true if you wish to cancel this event
    • getHandlers

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