Added ability to check kind of Disguise

This commit is contained in:
Andrew 2013-07-24 15:56:41 +12:00
parent b809790ea3
commit 1e511bede0

View File

@ -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;
}