2013-09-25 16:49:24 +02:00
|
|
|
package me.libraryaddict.disguise.events;
|
2013-07-24 02:16:54 +02:00
|
|
|
|
|
|
|
import org.bukkit.entity.Entity;
|
|
|
|
import org.bukkit.event.Cancellable;
|
|
|
|
import org.bukkit.event.Event;
|
|
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
|
2016-05-09 17:28:38 +02:00
|
|
|
import me.libraryaddict.disguise.disguisetypes.Disguise;
|
|
|
|
|
2013-08-11 20:32:51 +02:00
|
|
|
public class UndisguiseEvent extends Event implements Cancellable {
|
2015-08-03 00:39:44 +02:00
|
|
|
|
2013-07-24 02:16:54 +02:00
|
|
|
private static final HandlerList handlers = new HandlerList();
|
2013-07-29 04:53:32 +02:00
|
|
|
|
2013-07-29 01:19:59 +02:00
|
|
|
public static HandlerList getHandlerList() {
|
|
|
|
return handlers;
|
|
|
|
}
|
2013-07-29 04:53:32 +02:00
|
|
|
|
2013-07-24 02:16:54 +02:00
|
|
|
private Disguise disguise;
|
|
|
|
private Entity disguised;
|
|
|
|
private boolean isCancelled;
|
|
|
|
|
2013-08-11 20:32:51 +02:00
|
|
|
public UndisguiseEvent(Entity entity, Disguise disguise) {
|
2013-07-24 02:16:54 +02:00
|
|
|
this.disguised = entity;
|
|
|
|
this.disguise = disguise;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Disguise getDisguise() {
|
|
|
|
return disguise;
|
|
|
|
}
|
|
|
|
|
2013-08-11 20:32:51 +02:00
|
|
|
public Entity getEntity() {
|
2013-07-24 02:16:54 +02:00
|
|
|
return disguised;
|
|
|
|
}
|
|
|
|
|
2015-05-30 15:34:38 +02:00
|
|
|
@Override
|
2013-07-24 02:16:54 +02:00
|
|
|
public HandlerList getHandlers() {
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isCancelled() {
|
|
|
|
return isCancelled;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setCancelled(boolean cancelled) {
|
|
|
|
isCancelled = cancelled;
|
|
|
|
}
|
2015-08-03 00:39:44 +02:00
|
|
|
}
|