This will probably cause problems..

This commit is contained in:
libraryaddict 2014-09-05 22:32:47 +12:00
parent e09bd27bbd
commit 7b140d0d36

View File

@ -3,6 +3,7 @@ package me.libraryaddict.disguise.disguisetypes;
import java.security.InvalidParameterException;
import me.libraryaddict.disguise.disguisetypes.watchers.AgeableWatcher;
import me.libraryaddict.disguise.disguisetypes.watchers.LivingWatcher;
import me.libraryaddict.disguise.disguisetypes.watchers.ZombieWatcher;
import org.bukkit.entity.Entity;
@ -75,6 +76,11 @@ public class MobDisguise extends TargetedDisguise {
return getWatcher() != null && (getWatcher() instanceof AgeableWatcher || getWatcher() instanceof ZombieWatcher);
}
@Override
public LivingWatcher getWatcher() {
return (LivingWatcher) super.getWatcher();
}
public boolean isAdult() {
if (getWatcher() != null) {
if (getWatcher() instanceof AgeableWatcher) {
@ -130,7 +136,9 @@ public class MobDisguise extends TargetedDisguise {
public MobDisguise setKeepDisguiseOnPlayerLogout(boolean keepDisguise) {
return (MobDisguise) super.setKeepDisguiseOnPlayerLogout(keepDisguise);
} public MobDisguise setModifyBoundingBox(boolean modifyBox) {
}
public MobDisguise setModifyBoundingBox(boolean modifyBox) {
return (MobDisguise) super.setModifyBoundingBox(modifyBox);
}