当前位置: 首页>>代码示例>>Java>>正文


Java EntityDonkey类代码示例

本文整理汇总了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;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:12,代码来源:BiomePlains.java

示例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;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:16,代码来源:BiomeSavanna.java

示例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;
}
 
开发者ID:ToroCraft,项目名称:ToroQuest,代码行数:9,代码来源:CivilizationHandlers.java

示例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;
}
 
开发者ID:NightKosh,项目名称:Gravestone-mod-Extended,代码行数:15,代码来源:HorseCorpseHelper.java

示例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;
		
}
 
开发者ID:BurnedKirby,项目名称:Minecraft-Turn-Based-Battle-Mod,代码行数:37,代码来源:BattleSystemServer.java

示例6: ModelAdapterDonkey

import net.minecraft.entity.passive.EntityDonkey; //导入依赖的package包/类
public ModelAdapterDonkey()
{
    super(EntityDonkey.class, "donkey", 0.75F);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:ModelAdapterDonkey.java


注:本文中的net.minecraft.entity.passive.EntityDonkey类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。