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);
|
||||
}
|
||||
|
||||
public Entity getDisguised() {
|
||||
return getEntity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlerList;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user