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; }
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; }
private boolean isAnimal(EntityLivingBase victim) { return victim instanceof EntityCow || victim instanceof EntityHorse || victim instanceof EntityPig || victim instanceof EntityDonkey || victim instanceof EntityChicken || victim instanceof EntitySheep; }
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 ModelAdapterDonkey() { super(EntityDonkey.class, "donkey", 0.75F); }