本文整理汇总了Java中net.minecraft.entity.passive.EntityDonkey类的典型用法代码示例。如果您正苦于以下问题:Java EntityDonkey类的具体用法?Java EntityDonkey怎么用?Java EntityDonkey使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EntityDonkey类属于net.minecraft.entity.passive包,在下文中一共展示了EntityDonkey类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: BiomePlains
import net.minecraft.entity.passive.EntityDonkey; //导入依赖的package包/类
protected BiomePlains(boolean p_i46699_1_, Biome.BiomeProperties properties)
{
super(properties);
this.sunflowers = p_i46699_1_;
this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityHorse.class, 5, 2, 6));
this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityDonkey.class, 1, 1, 3));
this.theBiomeDecorator.treesPerChunk = 0;
this.theBiomeDecorator.extraTreeChance = 0.05F;
this.theBiomeDecorator.flowersPerChunk = 4;
this.theBiomeDecorator.grassPerChunk = 10;
}
示例2: BiomeSavanna
import net.minecraft.entity.passive.EntityDonkey; //导入依赖的package包/类
protected BiomeSavanna(Biome.BiomeProperties properties)
{
super(properties);
this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityHorse.class, 1, 2, 6));
this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityDonkey.class, 1, 1, 1));
if (this.getBaseHeight() > 1.1F)
{
this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityLlama.class, 8, 4, 4));
}
this.theBiomeDecorator.treesPerChunk = 1;
this.theBiomeDecorator.flowersPerChunk = 4;
this.theBiomeDecorator.grassPerChunk = 20;
}
示例3: isAnimal
import net.minecraft.entity.passive.EntityDonkey; //导入依赖的package包/类
private boolean isAnimal(EntityLivingBase victim) {
return victim instanceof EntityCow ||
victim instanceof EntityHorse ||
victim instanceof EntityPig ||
victim instanceof EntityDonkey ||
victim instanceof EntityChicken ||
victim instanceof EntitySheep;
}
示例4: getHorseType
import net.minecraft.entity.passive.EntityDonkey; //导入依赖的package包/类
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;
}
示例5: isPassive
import net.minecraft.entity.passive.EntityDonkey; //导入依赖的package包/类
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;
}
示例6: ModelAdapterDonkey
import net.minecraft.entity.passive.EntityDonkey; //导入依赖的package包/类
public ModelAdapterDonkey()
{
super(EntityDonkey.class, "donkey", 0.75F);
}