Add getDisguised() and getEntity() to un/disguise events

This commit is contained in:
libraryaddict 2021-06-29 23:53:00 +12:00
parent 3ac88ba078
commit a14cb9aadd
2 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,10 @@ public class DisguiseEvent extends Event implements Cancellable {
this(null, entity, disguise);
}
public Entity getDisguised() {
return getEntity();
}
@Override
public HandlerList getHandlers() {
return handlerList;

View File

@ -32,6 +32,10 @@ public class UndisguiseEvent extends Event implements Cancellable {
this.isBeingReplaced = beingReplaced;
}
public Entity getEntity() {
return getDisguised();
}
@Override
public HandlerList getHandlers() {
return handlerList;