1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-21 04:05:48 +00:00
Slimefun4/src/main/java/me/mrCookieSlime/Slimefun/Events/AndroidMineEvent.java

44 lines
912 B
Java
Raw Normal View History

2019-11-26 21:46:00 +00:00
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;
}
2019-11-27 16:39:08 +00:00
/**
* @return the broken block
*/
2019-11-26 21:46:00 +00:00
public Block getBlock() {
return this.block;
}
@Override
public boolean isCancelled() {
return this.cancelled;
}
@Override
public void setCancelled(boolean cancel) {
this.cancelled = cancel;
}
}