mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-11-11 01:17:16 +00:00
Added ability to check kind of Disguise
This commit is contained in:
parent
b809790ea3
commit
1e511bede0
1 changed files with 12 additions and 0 deletions
|
@ -504,6 +504,18 @@ public class Disguise {
|
|||
return replaceSounds;
|
||||
}
|
||||
|
||||
public boolean isMobDisguise() {
|
||||
return this instanceof MobDisguise;
|
||||
}
|
||||
|
||||
public boolean isMiscDisguise() {
|
||||
return this instanceof MiscDisguise;
|
||||
}
|
||||
|
||||
public boolean isPlayerDisguise() {
|
||||
return this instanceof PlayerDisguise;
|
||||
}
|
||||
|
||||
public void setReplaceSounds(boolean areSoundsReplaced) {
|
||||
replaceSounds = areSoundsReplaced;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue