Add getDisguised() and getEntity() to un/disguise events
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user