Java 类net.minecraft.entity.passive.EntityMule 实例源码

项目:Gravestone-mod-Extended    文件:HorseCorpseHelper.java   
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;
}
项目:Minecraft-Turn-Based-Battle-Mod    文件:BattleSystemServer.java   
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;

}
项目:Backmemed    文件:ModelAdapterMule.java   
public ModelAdapterMule()
{
    super(EntityMule.class, "mule", 0.75F);
}