1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Add DisenchanterEvent

This commit is contained in:
Poma123 2019-11-16 14:08:38 +01:00 committed by GitHub
parent 09ab124e36
commit f0c0919bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,46 @@
package me.mrCookieSlime.Slimefun.Events;
import me.mrCookieSlime.Slimefun.Objects.MultiBlock;
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class DisenchanterEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private SlimefunItem sfItem;
private boolean cancelled;
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
public DisenchanterEvent(SlimefunItem sfItem) {
this.sfItem = sfItem;
}
public SlimefunItem getSfItem() {
return this.sfItem;
}
@Override
public boolean isCancelled() {
return this.cancelled;
}
@Override
public void setCancelled(boolean cancel) {
this.cancelled = cancel;
}
}