parent
4a6cc97f8a
commit
2fb73aee53
|
@ -0,0 +1,38 @@
|
|||
package pw.yumc.MiaoScript;
|
||||
|
||||
import org.bukkit.event.Cancellable;
|
||||
|
||||
import jdk.nashorn.api.scripting.ScriptObjectMirror;
|
||||
|
||||
/**
|
||||
* Created with IntelliJ IDEA
|
||||
*
|
||||
* @author 喵♂呜
|
||||
* Created on 2017/9/30 21:32.
|
||||
*/
|
||||
public class ScriptEvent extends BaseEvent implements Cancellable {
|
||||
private ScriptObjectMirror mirror;
|
||||
private boolean cancelled = false;
|
||||
|
||||
public ScriptEvent(ScriptObjectMirror mirror) {
|
||||
this.mirror = mirror;
|
||||
}
|
||||
|
||||
public ScriptObjectMirror getMirror() {
|
||||
return mirror;
|
||||
}
|
||||
|
||||
public void setMirror(ScriptObjectMirror mirror) {
|
||||
this.mirror = mirror;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
return cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCancelled(boolean cancel) {
|
||||
this.cancelled = cancel;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue