Search in sources :

Example 1 with EnumParticleTypes

use of net.minecraft.util.EnumParticleTypes in project Railcraft by Railcraft.

the class TamingInteractHandler method playTameEffect.

protected void playTameEffect(EntityTameable tamable, boolean par1) {
    EnumParticleTypes particleType = EnumParticleTypes.HEART;
    if (!par1)
        particleType = EnumParticleTypes.SMOKE_NORMAL;
    for (int var3 = 0; var3 < 7; ++var3) {
        double var4 = rand.nextGaussian() * 0.02D;
        double var6 = rand.nextGaussian() * 0.02D;
        double var8 = rand.nextGaussian() * 0.02D;
        tamable.worldObj.spawnParticle(particleType, tamable.posX + (double) (rand.nextFloat() * tamable.width * 2.0F) - (double) tamable.width, tamable.posY + 0.5D + (double) (rand.nextFloat() * tamable.height), tamable.posZ + (double) (rand.nextFloat() * tamable.width * 2.0F) - (double) tamable.width, var4, var6, var8);
    }
}
Also used : EnumParticleTypes(net.minecraft.util.EnumParticleTypes)

Aggregations

EnumParticleTypes (net.minecraft.util.EnumParticleTypes)1