From 1e511bede06db07311998b17311892a8487f3f50 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 24 Jul 2013 15:56:41 +1200 Subject: [PATCH] Added ability to check kind of Disguise --- .../disguise/DisguiseTypes/Disguise.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/me/libraryaddict/disguise/DisguiseTypes/Disguise.java b/src/me/libraryaddict/disguise/DisguiseTypes/Disguise.java index e4c5987a..2b59e0c0 100644 --- a/src/me/libraryaddict/disguise/DisguiseTypes/Disguise.java +++ b/src/me/libraryaddict/disguise/DisguiseTypes/Disguise.java @@ -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; }