mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Add DisenchanterEvent
This commit is contained in:
parent
09ab124e36
commit
f0c0919bce
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user