mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Add getDisguised() and getEntity() to un/disguise events
This commit is contained in:
parent
3ac88ba078
commit
a14cb9aadd
2 changed files with 8 additions and 0 deletions
|
@ -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 a new issue