Class AndroidMineEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- io.github.thebusybiscuit.slimefun4.api.events.AndroidMineEvent
-
- All Implemented Interfaces:
Cancellable
public class AndroidMineEvent extends Event implements Cancellable
This event is fired before a miner android mines a block. If this event is cancelled, the block will not be mined.- Author:
- poma123
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
-
Constructor Summary
Constructors Constructor Description AndroidMineEvent(Block block, AndroidInstance android)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AndroidInstance
getAndroid()
This method returns the block of the android who wants to mine a block.Block
getBlock()
This method returns the mined blockstatic HandlerList
getHandlerList()
HandlerList
getHandlers()
boolean
isCancelled()
void
setCancelled(boolean cancel)
-
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
-
-
-
Constructor Detail
-
AndroidMineEvent
public AndroidMineEvent(Block block, AndroidInstance android)
- Parameters:
block
- - mined blockandroid
- - the block of the android
-
-
Method Detail
-
getHandlerList
public static HandlerList getHandlerList()
-
getHandlers
public HandlerList getHandlers()
- Specified by:
getHandlers
in classEvent
-
getBlock
public Block getBlock()
This method returns the mined block- Returns:
- the mined block
-
getAndroid
public AndroidInstance getAndroid()
This method returns the block of the android who wants to mine a block.- Returns:
- the block of the android
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelled
in interfaceCancellable
-
-