public static EnumHorseType getHorseType(AbstractHorse horse) { if (horse instanceof EntityHorse) { return EnumHorseType.HORSE; } else if (horse instanceof EntityDonkey) { return EnumHorseType.DONKEY; } else if (horse instanceof EntityMule) { return EnumHorseType.MULE; } else if (horse instanceof EntityZombieHorse || horse instanceof net.minecraft.entity.passive.EntityZombieHorse) { return EnumHorseType.ZOMBIE; } else if (horse instanceof EntitySkeletonHorse || horse instanceof net.minecraft.entity.passive.EntitySkeletonHorse) { return EnumHorseType.SKELETON; } return EnumHorseType.HORSE; }
public boolean isPassive(EntityLivingBase entity) { if(entity instanceof EntityBat) return true; else if(entity instanceof EntityChicken) return true; else if(entity instanceof EntityCow) return true; else if(entity instanceof EntityHorse) return true; else if(entity instanceof EntityMooshroom) return true; else if(entity instanceof EntityOcelot) return true; else if(entity instanceof EntityPig) return true; else if(entity instanceof EntitySheep) return true; else if(entity instanceof EntitySquid) return true; else if(entity instanceof EntityVillager) return true; else if(entity instanceof EntitySlime) return true; else if(entity instanceof EntityDonkey) return true; else if(entity instanceof EntityLlama) return true; else if(entity instanceof EntityMule) return true; else if(entity instanceof EntityRabbit) return true; return false; }
public ModelAdapterMule() { super(EntityMule.class, "mule", 0.75F); }