use of net.minecraft.entity.passive.EntityHorse in project Railcraft by Railcraft.
the class EntityAIHalloweenKnights method createHorse.
private EntityHorse createHorse(DifficultyInstance difficultyInstance) {
EntityHorse entityhorse = new EntityHorse(horse.worldObj);
entityhorse.onInitialSpawn(difficultyInstance, null);
entityhorse.setPosition(horse.posX, horse.posY, horse.posZ);
entityhorse.hurtResistantTime = 60;
entityhorse.enablePersistence();
entityhorse.setType(HorseType.SKELETON);
entityhorse.setHorseTamed(true);
entityhorse.setGrowingAge(0);
entityhorse.worldObj.spawnEntityInWorld(entityhorse);
return entityhorse;
}
Aggregations