Package redempt.redlib.blockdata.events
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
ConstructorsConstructorDescriptionDataBlockMoveEvent(DataBlock db, org.bukkit.Location loc) Construct a DataBlockMoveEvent -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListorg.bukkit.LocationgetTo()booleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.Methods inherited from class org.bukkit.event.block.BlockEvent
getBlockMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
DataBlockMoveEvent
Construct a DataBlockMoveEvent- Parameters:
db- The DataBlockloc- The location the DataBlock is being moved to
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
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:
isCancelledin interfaceorg.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:
setCancelledin interfaceorg.bukkit.event.Cancellable- Parameters:
cancel- true if you wish to cancel this event
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-