Add getDisguised() and getEntity() to un/disguise events
This commit is contained in:
parent
3ac88ba078
commit
a14cb9aadd
@ -30,6 +30,10 @@ public class DisguiseEvent extends Event implements Cancellable {
|
|||||||
this(null, entity, disguise);
|
this(null, entity, disguise);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Entity getDisguised() {
|
||||||
|
return getEntity();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HandlerList getHandlers() {
|
public HandlerList getHandlers() {
|
||||||
return handlerList;
|
return handlerList;
|
||||||
|
@ -32,6 +32,10 @@ public class UndisguiseEvent extends Event implements Cancellable {
|
|||||||
this.isBeingReplaced = beingReplaced;
|
this.isBeingReplaced = beingReplaced;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Entity getEntity() {
|
||||||
|
return getDisguised();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HandlerList getHandlers() {
|
public HandlerList getHandlers() {
|
||||||
return handlerList;
|
return handlerList;
|
||||||
|
Loading…
Reference in New Issue
Block a user