mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-21 04:05:48 +00:00
41 lines
864 B
Java
41 lines
864 B
Java
|
package me.mrCookieSlime.Slimefun.Events;
|
||
|
|
||
|
import org.bukkit.block.Block;
|
||
|
import org.bukkit.event.Cancellable;
|
||
|
import org.bukkit.event.Event;
|
||
|
import org.bukkit.event.HandlerList;
|
||
|
|
||
|
public class AndroidMineEvent extends Event implements Cancellable {
|
||
|
|
||
|
private static final HandlerList handlers = new HandlerList();
|
||
|
|
||
|
private final Block block;
|
||
|
private boolean cancelled;
|
||
|
|
||
|
public AndroidMineEvent(Block block) {
|
||
|
this.block = block;
|
||
|
}
|
||
|
|
||
|
public static HandlerList getHandlerList() {
|
||
|
return handlers;
|
||
|
}
|
||
|
|
||
|
public HandlerList getHandlers() {
|
||
|
return handlers;
|
||
|
}
|
||
|
|
||
|
public Block getBlock() {
|
||
|
return this.block;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean isCancelled() {
|
||
|
return this.cancelled;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void setCancelled(boolean cancel) {
|
||
|
this.cancelled = cancel;
|
||
|
}
|
||
|
|
||
|
}
|