2013-07-24 02:16:54 +02:00
|
|
|
package me.libraryaddict.disguise.Events;
|
|
|
|
|
|
|
|
import me.libraryaddict.disguise.DisguiseTypes.Disguise;
|
|
|
|
|
|
|
|
import org.bukkit.entity.Entity;
|
|
|
|
import org.bukkit.event.Cancellable;
|
|
|
|
import org.bukkit.event.Event;
|
|
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
|
|
|
|
public class DisguisedEvent extends Event implements Cancellable {
|
|
|
|
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;
|
2013-07-29 01:19:59 +02:00
|
|
|
|
2013-07-24 02:16:54 +02:00
|
|
|
private boolean isCancelled;
|
|
|
|
|
|
|
|
public DisguisedEvent(Entity entity, Disguise disguise) {
|
|
|
|
this.disguised = entity;
|
|
|
|
this.disguise = disguise;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Disguise getDisguise() {
|
|
|
|
return disguise;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Entity getDisguised() {
|
|
|
|
return disguised;
|
|
|
|
}
|
|
|
|
|
|
|
|
public HandlerList getHandlers() {
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isCancelled() {
|
|
|
|
return isCancelled;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setCancelled(boolean cancelled) {
|
|
|
|
isCancelled = cancelled;
|
|
|
|
}
|
|
|
|
}
|