net.minecraft.entity.passive.EntityDonkey Java Examples

The following examples show how to use net.minecraft.entity.passive.EntityDonkey. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BiomeMeadow.java    From CommunityMod with GNU Lesser General Public License v2.1 6 votes vote down vote up
public BiomeMeadow() {
	super(properties);
	decorator.treesPerChunk = 0;
	decorator.extraTreeChance = 0.2F;
	decorator.flowersPerChunk = 15;
	decorator.grassPerChunk = 15;
	decorator.reedsPerChunk = 2;

	spawnableCreatureList.add(new SpawnListEntry(EntityHorse.class, 5, 2, 4));
	spawnableCreatureList.add(new SpawnListEntry(EntityDonkey.class, 1, 1, 2));

	this.flowers.clear();
	for (BlockFlower.EnumFlowerType type : BlockFlower.EnumFlowerType.values()) {
		if (type.getBlockType() == BlockFlower.EnumFlowerColor.YELLOW)
			continue;
		if (type == BlockFlower.EnumFlowerType.BLUE_ORCHID)
			type = BlockFlower.EnumFlowerType.POPPY;
		addFlower(net.minecraft.init.Blocks.RED_FLOWER.getDefaultState().withProperty(net.minecraft.init.Blocks.RED_FLOWER.getTypeProperty(), type), 10);
	}
}
 
Example #2
Source File: BiomeMeadow.java    From Traverse-Legacy-1-12-2 with MIT License 6 votes vote down vote up
public BiomeMeadow() {
	super(properties);
	decorator.treesPerChunk = 0;
	decorator.extraTreeChance = 0.2F;
	decorator.flowersPerChunk = 15;
	decorator.grassPerChunk = 15;
	decorator.reedsPerChunk = 2;

	spawnableCreatureList.add(new SpawnListEntry(EntityHorse.class, 5, 2, 4));
	spawnableCreatureList.add(new SpawnListEntry(EntityDonkey.class, 1, 1, 2));

	this.flowers.clear();
	for (BlockFlower.EnumFlowerType type : BlockFlower.EnumFlowerType.values()) {
		if (type.getBlockType() == BlockFlower.EnumFlowerColor.YELLOW)
			continue;
		if (type == BlockFlower.EnumFlowerType.BLUE_ORCHID)
			type = BlockFlower.EnumFlowerType.POPPY;
		addFlower(net.minecraft.init.Blocks.RED_FLOWER.getDefaultState().withProperty(net.minecraft.init.Blocks.RED_FLOWER.getTypeProperty(), type), 10);
	}
}
 
Example #3
Source File: CivilizationHandlers.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
private boolean isAnimal(EntityLivingBase victim) {
	return victim instanceof EntityCow ||
			victim instanceof EntityHorse ||
			victim instanceof EntityPig ||
			victim instanceof EntityDonkey ||
			victim instanceof EntityChicken ||
			victim instanceof EntitySheep;
}
 
Example #4
Source File: BiomeRockyPlains.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
public BiomeRockyPlains() {
	super(false, properties);
	this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityHorse.class, 4, 1, 5));
	this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityDonkey.class, 1, 1, 2));
}
 
Example #5
Source File: CraftDonkey.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
public CraftDonkey(CraftServer server, EntityDonkey entity) {
    super(server, entity);
}
 
Example #6
Source File: BiomeRockyPlains.java    From Traverse-Legacy-1-12-2 with MIT License 4 votes vote down vote up
public BiomeRockyPlains() {
	super(false, properties);
	this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityHorse.class, 4, 1, 5));
	this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityDonkey.class, 1, 1, 2));
}