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

项目:BaseClient    文件:CustomColors.java   
public static void updateReddustFX(EntityFX p_updateReddustFX_0_, IBlockAccess p_updateReddustFX_1_, double p_updateReddustFX_2_, double p_updateReddustFX_4_, double p_updateReddustFX_6_)
{
    if (redstoneColors != null)
    {
        IBlockState iblockstate = p_updateReddustFX_1_.getBlockState(new BlockPos(p_updateReddustFX_2_, p_updateReddustFX_4_, p_updateReddustFX_6_));
        int i = getRedstoneLevel(iblockstate, 15);
        int j = redstoneColors.getColor(i);
        int k = j >> 16 & 255;
        int l = j >> 8 & 255;
        int i1 = j & 255;
        float f = (float)k / 255.0F;
        float f1 = (float)l / 255.0F;
        float f2 = (float)i1 / 255.0F;
        p_updateReddustFX_0_.setRBGColorF(f, f1, f2);
    }
}
项目:BaseClient    文件:CustomColorizer.java   
public static void updateReddustFX(EntityFX p_updateReddustFX_0_, IBlockAccess p_updateReddustFX_1_, double p_updateReddustFX_2_, double p_updateReddustFX_4_, double p_updateReddustFX_6_)
{
    if (redstoneColors != null)
    {
        IBlockState iblockstate = p_updateReddustFX_1_.getBlockState(new BlockPos(p_updateReddustFX_2_, p_updateReddustFX_4_, p_updateReddustFX_6_));
        int i = getRedstoneLevel(iblockstate, 15);
        int j = getRedstoneColor(i);

        if (j != -1)
        {
            int k = j >> 16 & 255;
            int l = j >> 8 & 255;
            int i1 = j & 255;
            float f = (float)k / 255.0F;
            float f1 = (float)l / 255.0F;
            float f2 = (float)i1 / 255.0F;
            p_updateReddustFX_0_.setRBGColorF(f, f1, f2);
        }
    }
}
项目:BaseClient    文件:CustomColorizer.java   
public static void updateWaterFX(EntityFX p_updateWaterFX_0_, IBlockAccess p_updateWaterFX_1_, double p_updateWaterFX_2_, double p_updateWaterFX_4_, double p_updateWaterFX_6_)
{
    if (waterColors != null)
    {
        int i = getFluidColor(Blocks.water, p_updateWaterFX_1_, new BlockPos(p_updateWaterFX_2_, p_updateWaterFX_4_, p_updateWaterFX_6_));
        int j = i >> 16 & 255;
        int k = i >> 8 & 255;
        int l = i & 255;
        float f = (float)j / 255.0F;
        float f1 = (float)k / 255.0F;
        float f2 = (float)l / 255.0F;

        if (particleWaterColor >= 0)
        {
            int i1 = particleWaterColor >> 16 & 255;
            int j1 = particleWaterColor >> 8 & 255;
            int k1 = particleWaterColor & 255;
            f *= (float)i1 / 255.0F;
            f1 *= (float)j1 / 255.0F;
            f2 *= (float)k1 / 255.0F;
        }

        p_updateWaterFX_0_.setRBGColorF(f, f1, f2);
    }
}
项目:BaseClient    文件:CustomColorizer.java   
public static void updateReddustFX(EntityFX p_updateReddustFX_0_, IBlockAccess p_updateReddustFX_1_, double p_updateReddustFX_2_, double p_updateReddustFX_4_, double p_updateReddustFX_6_)
{
    if (redstoneColors != null)
    {
        IBlockState iblockstate = p_updateReddustFX_1_.getBlockState(new BlockPos(p_updateReddustFX_2_, p_updateReddustFX_4_, p_updateReddustFX_6_));
        int i = getRedstoneLevel(iblockstate, 15);
        int j = getRedstoneColor(i);

        if (j != -1)
        {
            int k = j >> 16 & 255;
            int l = j >> 8 & 255;
            int i1 = j & 255;
            float f = (float)k / 255.0F;
            float f1 = (float)l / 255.0F;
            float f2 = (float)i1 / 255.0F;
            p_updateReddustFX_0_.setRBGColorF(f, f1, f2);
        }
    }
}
项目:BaseClient    文件:CustomColorizer.java   
public static void updateWaterFX(EntityFX p_updateWaterFX_0_, IBlockAccess p_updateWaterFX_1_, double p_updateWaterFX_2_, double p_updateWaterFX_4_, double p_updateWaterFX_6_)
{
    if (waterColors != null)
    {
        int i = getFluidColor(Blocks.water, p_updateWaterFX_1_, new BlockPos(p_updateWaterFX_2_, p_updateWaterFX_4_, p_updateWaterFX_6_));
        int j = i >> 16 & 255;
        int k = i >> 8 & 255;
        int l = i & 255;
        float f = (float)j / 255.0F;
        float f1 = (float)k / 255.0F;
        float f2 = (float)l / 255.0F;

        if (particleWaterColor >= 0)
        {
            int i1 = particleWaterColor >> 16 & 255;
            int j1 = particleWaterColor >> 8 & 255;
            int k1 = particleWaterColor & 255;
            f *= (float)i1 / 255.0F;
            f1 *= (float)j1 / 255.0F;
            f2 *= (float)k1 / 255.0F;
        }

        p_updateWaterFX_0_.setRBGColorF(f, f1, f2);
    }
}
项目:MidgarCrusade    文件:Wildswing_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Warcry.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Rockfall_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Rendweapon.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;
    float rayon;

    b = 0;
    world = Minecraft.getMinecraft().theWorld;
    for (int pi = 0; pi < 360; pi++)
       {
        for (int longueur = 0; longueur < 10; longueur++)
        {
            rayon = 1 + longueur / 5.0f;
            a = rayon * MathHelper.cos(pi);
            c = rayon * MathHelper.sin(pi);

            world.spawnParticle("flame", x, y, z, a / 16.0f, (b + 10 - longueur) / 16.0f, c / 16.0f);
        }
       }
}
项目:MidgarCrusade    文件:Mowdown.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Tempest_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Roundhouse.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Heal_2.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityPlayer player;
    EntityFX particles;
    float a;
    float c;
    world = Minecraft.getMinecraft().theWorld;
    player = Minecraft.getMinecraft().thePlayer;
    for (int i = 0; i < 250; i++)
       {
        a = world.rand.nextFloat() / 20.0f;
        c = world.rand.nextFloat() / 20.0f;
        if (world.rand.nextInt(2) == 0)
            a = - a;
        if (world.rand.nextInt(2) == 0)
            c = - c;
        world.spawnParticle("fireworksSpark", x, y + 1, z, a * 5, -0.25f, c * 5);
        world.spawnParticle("fireworksSpark", x, y + 1, z, a * 5, 0.25f, c * 5);
        world.spawnParticle("fireworksSpark", x, y + 1, z, a, -0.25f, c);
        world.spawnParticle("fireworksSpark", x, y - 1, z, a, 0.25f, c);
       }
}
项目:MidgarCrusade    文件:HolyExplosion_7.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityPlayer player;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    player = Minecraft.getMinecraft().thePlayer;
    a = 0;
    for (int i = 0; i < 200; i++)
    {
        a = MathHelper.cos(i) / 4.0f;
        b = (float) Math.tan(i);
        c = MathHelper.sin(i) / 2.0f;

        world.spawnParticle("fireworksSpark", x, y, z, 0, b, c);
        world.spawnParticle("fireworksSpark", x, y, z, a, b, 0);

       }
}
项目:MidgarCrusade    文件:Starcross_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:ConeFeu_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;
    float rayon;

    b = 0;
    world = Minecraft.getMinecraft().theWorld;
    for (int pi = 0; pi < 360; pi++)
       {
        for (int longueur = 0; longueur < 10; longueur++)
        {
            rayon = 1 + longueur / 5.0f;
            a = rayon * MathHelper.cos(pi);
            c = rayon * MathHelper.sin(pi);

            world.spawnParticle("flame", x, y, z, a / 16.0f, (b + 10 - longueur) / 16.0f, c / 16.0f);
        }
       }
}
项目:MidgarCrusade    文件:Prominence_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Curaga_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityPlayer player;
    EntityFX particles;
    float a;
    float c;
    world = Minecraft.getMinecraft().theWorld;
    player = Minecraft.getMinecraft().thePlayer;
    for (int i = 0; i < 250; i++)
       {
        a = world.rand.nextFloat() / 20.0f;
        c = world.rand.nextFloat() / 20.0f;
        if (world.rand.nextInt(2) == 0)
            a = - a;
        if (world.rand.nextInt(2) == 0)
            c = - c;
        world.spawnParticle("fireworksSpark", x, y + 1, z, a * 5, -0.25f, c * 5);
        world.spawnParticle("fireworksSpark", x, y + 1, z, a * 5, 0.25f, c * 5);
        world.spawnParticle("fireworksSpark", x, y + 1, z, a, -0.25f, c);
        world.spawnParticle("fireworksSpark", x, y - 1, z, a, 0.25f, c);
       }
}
项目:MidgarCrusade    文件:Cure_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityPlayer player;
    EntityFX particles;
    float a;
    float c;
    world = Minecraft.getMinecraft().theWorld;
    player = Minecraft.getMinecraft().thePlayer;
    for (int i = 0; i < 250; i++)
       {
        a = world.rand.nextFloat() / 20.0f;
        c = world.rand.nextFloat() / 20.0f;
        if (world.rand.nextInt(2) == 0)
            a = - a;
        if (world.rand.nextInt(2) == 0)
            c = - c;
        world.spawnParticle("fireworksSpark", x, y + 1, z, a * 5, -0.25f, c * 5);
        world.spawnParticle("fireworksSpark", x, y + 1, z, a * 5, 0.25f, c * 5);
        world.spawnParticle("fireworksSpark", x, y + 1, z, a, -0.25f, c);
        world.spawnParticle("fireworksSpark", x, y - 1, z, a, 0.25f, c);
       }
}
项目:MidgarCrusade    文件:Cura_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityPlayer player;
    EntityFX particles;
    float a;
    float c;
    world = Minecraft.getMinecraft().theWorld;
    player = Minecraft.getMinecraft().thePlayer;
    for (int i = 0; i < 250; i++)
       {
        a = world.rand.nextFloat() / 20.0f;
        c = world.rand.nextFloat() / 20.0f;
        if (world.rand.nextInt(2) == 0)
            a = - a;
        if (world.rand.nextInt(2) == 0)
            c = - c;
        world.spawnParticle("fireworksSpark", x, y + 1, z, a * 5, -0.25f, c * 5);
        world.spawnParticle("fireworksSpark", x, y + 1, z, a * 5, 0.25f, c * 5);
        world.spawnParticle("fireworksSpark", x, y + 1, z, a, -0.25f, c);
        world.spawnParticle("fireworksSpark", x, y - 1, z, a, 0.25f, c);
       }
}
项目:MidgarCrusade    文件:Stardust_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Saintcross_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Deluge_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Fireland_2.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Necromancy_6.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            particles = new EntityFX_Colored(world,x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0, 1.0f, 0.5f, 5.0f, 0.0f);
            Minecraft.getMinecraft().effectRenderer.addEffect(particles);

            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Wildtornado_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Cura_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityPlayer player;
    EntityFX particles;
    float a;
    float c;
    world = Minecraft.getMinecraft().theWorld;
    player = Minecraft.getMinecraft().thePlayer;
    for (int i = 0; i < 250; i++)
       {
        a = world.rand.nextFloat() / 20.0f;
        c = world.rand.nextFloat() / 20.0f;
        if (world.rand.nextInt(2) == 0)
            a = - a;
        if (world.rand.nextInt(2) == 0)
            c = - c;
        world.spawnParticle("fireworksSpark", x, y + 1, z, a * 5, -0.25f, c * 5);
        world.spawnParticle("fireworksSpark", x, y + 1, z, a * 5, 0.25f, c * 5);
        world.spawnParticle("fireworksSpark", x, y + 1, z, a, -0.25f, c);
        world.spawnParticle("fireworksSpark", x, y - 1, z, a, 0.25f, c);
       }
}
项目:MidgarCrusade    文件:Lifethreadblade.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;
    float rayon;

    b = 0;
    world = Minecraft.getMinecraft().theWorld;
    for (int pi = 0; pi < 360; pi++)
       {
        for (int longueur = 0; longueur < 10; longueur++)
        {
            rayon = 1 + longueur / 5.0f;
            a = rayon * MathHelper.cos(pi);
            c = rayon * MathHelper.sin(pi);

            world.spawnParticle("flame", x, y, z, a / 16.0f, (b + 10 - longueur) / 16.0f, c / 16.0f);
        }
       }
}
项目:MidgarCrusade    文件:Grab_4.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityPlayer player;
    EntityFX particles;
    double x1;
    double y1;
    double z1;
    float a;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    player = Minecraft.getMinecraft().thePlayer;
    for (int i = 0; i < 100; i++)
       {
        x1 = (world.rand.nextInt(2) == 0) ? x + 3 : x - 3;
        y1 = y + world.rand.nextInt(3);
        z1 = (world.rand.nextInt(2) == 0) ? z + 3 : z - 3;

        a = (float) (x - x1) / 3;
        c = (float) (z - z1) / 3;

        particles = new EntityFX_Colored(world, x1, y1, z1, a, 0.1f, c, 2.0f, 1, 1, 1);
        Minecraft.getMinecraft().effectRenderer.addEffect(particles);
       }
}
项目:MidgarCrusade    文件:Arena_6.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;
    int rayon;


    world = Minecraft.getMinecraft().theWorld;
    rayon = 12;
    for (int teta = 0; teta < 360; teta++)
    {
        for (float hauteur = 0; hauteur < 12; hauteur += 0.5f)
        {
            a = rayon * MathHelper.cos(teta);
            b = hauteur;
            c = rayon * MathHelper.sin(teta);

            world.spawnParticle("fireworksSpark", x + a - 1, y + b - 4, z + c - 1, 0, 0, 0);
            particles = new EntityFX_Colored(world, x + a, y + b - 2, z + c, 0, 0, 0, 2.0f, 1.5f, 1.5f, 0.0f);
            Minecraft.getMinecraft().effectRenderer.addEffect(particles);
        }
    }
}
项目:MidgarCrusade    文件:Freezeblink_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Wildswing_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Bio_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Gigaflare_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:MidgarCrusade    文件:Wildswing_1.java   
public static void playEffect(double x, double y, double z)
{
    World world;
    EntityFX particles;
    float a;
    float b;
    float c;

    world = Minecraft.getMinecraft().theWorld;
    for (int i = 0; i < 50; i++)
       {
        for (int j = 0; j < 50; j++)
        {
            world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
            if (world.rand.nextInt(2) == 0)
                world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
项目:DecompiledMinecraft    文件:RenderGlobal.java   
private EntityFX spawnEntityFX(int p_174974_1_, boolean ignoreRange, double p_174974_3_, double p_174974_5_, double p_174974_7_, double p_174974_9_, double p_174974_11_, double p_174974_13_, int... p_174974_15_)
{
    if (this.mc != null && this.mc.getRenderViewEntity() != null && this.mc.effectRenderer != null)
    {
        int i = this.mc.gameSettings.particleSetting;

        if (i == 1 && this.theWorld.rand.nextInt(3) == 0)
        {
            i = 2;
        }

        double d0 = this.mc.getRenderViewEntity().posX - p_174974_3_;
        double d1 = this.mc.getRenderViewEntity().posY - p_174974_5_;
        double d2 = this.mc.getRenderViewEntity().posZ - p_174974_7_;

        if (ignoreRange)
        {
            return this.mc.effectRenderer.spawnEffectParticle(p_174974_1_, p_174974_3_, p_174974_5_, p_174974_7_, p_174974_9_, p_174974_11_, p_174974_13_, p_174974_15_);
        }
        else
        {
            double d3 = 16.0D;
            return d0 * d0 + d1 * d1 + d2 * d2 > 256.0D ? null : (i > 1 ? null : this.mc.effectRenderer.spawnEffectParticle(p_174974_1_, p_174974_3_, p_174974_5_, p_174974_7_, p_174974_9_, p_174974_11_, p_174974_13_, p_174974_15_));
        }
    }
    else
    {
        return null;
    }
}
项目:BaseClient    文件:CustomColors.java   
public static void updatePortalFX(EntityFX p_updatePortalFX_0_)
{
    if (particlePortalColor >= 0)
    {
        int i = particlePortalColor;
        int j = i >> 16 & 255;
        int k = i >> 8 & 255;
        int l = i & 255;
        float f = (float)j / 255.0F;
        float f1 = (float)k / 255.0F;
        float f2 = (float)l / 255.0F;
        p_updatePortalFX_0_.setRBGColorF(f, f1, f2);
    }
}
项目:BaseClient    文件:CustomColors.java   
public static void updateMyceliumFX(EntityFX p_updateMyceliumFX_0_)
{
    if (myceliumParticleColors != null)
    {
        int i = myceliumParticleColors.getColorRandom();
        int j = i >> 16 & 255;
        int k = i >> 8 & 255;
        int l = i & 255;
        float f = (float)j / 255.0F;
        float f1 = (float)k / 255.0F;
        float f2 = (float)l / 255.0F;
        p_updateMyceliumFX_0_.setRBGColorF(f, f1, f2);
    }
}
项目:BaseClient    文件:CustomColors.java   
public static void updateWaterFX(EntityFX p_updateWaterFX_0_, IBlockAccess p_updateWaterFX_1_, double p_updateWaterFX_2_, double p_updateWaterFX_4_, double p_updateWaterFX_6_)
{
    if (waterColors != null || blockColormaps != null)
    {
        BlockPos blockpos = new BlockPos(p_updateWaterFX_2_, p_updateWaterFX_4_, p_updateWaterFX_6_);
        RenderEnv renderenv = RenderEnv.getInstance(p_updateWaterFX_1_, BLOCK_STATE_WATER, blockpos);
        int i = getFluidColor(p_updateWaterFX_1_, BLOCK_STATE_WATER, blockpos, renderenv);
        int j = i >> 16 & 255;
        int k = i >> 8 & 255;
        int l = i & 255;
        float f = (float)j / 255.0F;
        float f1 = (float)k / 255.0F;
        float f2 = (float)l / 255.0F;

        if (particleWaterColor >= 0)
        {
            int i1 = particleWaterColor >> 16 & 255;
            int j1 = particleWaterColor >> 8 & 255;
            int k1 = particleWaterColor & 255;
            f *= (float)i1 / 255.0F;
            f1 *= (float)j1 / 255.0F;
            f2 *= (float)k1 / 255.0F;
        }

        p_updateWaterFX_0_.setRBGColorF(f, f1, f2);
    }
}
项目:BaseClient    文件:CustomColorizer.java   
public static void updatePortalFX(EntityFX p_updatePortalFX_0_)
{
    if (particlePortalColor >= 0)
    {
        int i = particlePortalColor;
        int j = i >> 16 & 255;
        int k = i >> 8 & 255;
        int l = i & 255;
        float f = (float)j / 255.0F;
        float f1 = (float)k / 255.0F;
        float f2 = (float)l / 255.0F;
        p_updatePortalFX_0_.setRBGColorF(f, f1, f2);
    }
}