Java 类net.minecraft.client.particle.EntityHeartFX 实例源码

项目:rpginventory    文件:ClientProxy.java   
@Override
public void spawnParticle(World world, EntityLivingBase el, Random rng) {
    Minecraft mc = Minecraft.getMinecraft();
    EntityHeartFX efx = new EntityHeartFX(world, el.posX, el.posY + 0.5F
            + rng.nextFloat(), el.posZ, rng.nextFloat(),
            rng.nextFloat() + 0.4F, rng.nextFloat());
    mc.effectRenderer.addEffect(efx);
}