Package net.minecraft.client.particle

Examples of net.minecraft.client.particle.EntityFX


    Minecraft.getMinecraft().mcProfiler.startSection(name+"-update");

    lazyAdd = true;

    for (Iterator<EntityFX> it = particles.iterator(); it.hasNext(); ) {
      EntityFX particle = it.next();

      particle.onUpdate();

      if (particle.isDead) {
        it.remove();
      }
    }
View Full Code Here


    Minecraft mc = Minecraft.getMinecraft();
    int var14 = mc.gameSettings.particleSetting;
    double var15 = mc.renderViewEntity.posX - x;
    double var17 = mc.renderViewEntity.posY - y;
    double var19 = mc.renderViewEntity.posZ - z;
    EntityFX effect = null;
   
    double var22 = 16.0D;
   
    if (var15 * var15 + var17 * var17 + var19 * var19 > var22 * var22) {
      return;
View Full Code Here

            return;
        if (rand.nextInt(2) == 0) {
            double px = start.xCoord + 0.5 + rand.nextGaussian() * 0.1;
            double py = start.yCoord + 0.5 + rand.nextGaussian() * 0.1;
            double pz = start.zCoord + 0.5 + rand.nextGaussian() * 0.1;
            EntityFX particle = new EntityTuningFX(start.getWorldObj(), px, py, pz, EffectManager.getEffectSource(dest));
            spawnParticle(particle);
        }
    }
View Full Code Here

            return;
        if (rand.nextInt(3) == 0) {
            double px = startX + 0.5 + rand.nextGaussian() * 0.1;
            double py = startY + 0.5 + rand.nextGaussian() * 0.1;
            double pz = startZ + 0.5 + rand.nextGaussian() * 0.1;
            EntityFX particle = new EntityHeatTrailFX(dest.getWorldObj(), px, py, pz, colorSeed, EffectManager.getEffectSource(dest));
            spawnParticle(particle);
        }
    }
View Full Code Here

    @Override
    public void fireSparkEffect(World world, double startX, double startY, double startZ, double endX, double endY, double endZ) {
        if (!shouldSpawnParticle(false))
            return;

        EntityFX particle = new EntityFireSparkFX(world, startX, startY, startZ, endX, endY, endZ);
        spawnParticle(particle);
    }
View Full Code Here

                    continue;
                double xParticle = xCorner + rand.nextFloat() * 16;
                double yParticle = yCorner + rand.nextFloat() * 16;
                double zParticle = zCorner + rand.nextFloat() * 16;

                EntityFX particle = new EntityChunkLoaderFX(world, xParticle, yParticle, zParticle, es);
                spawnParticle(particle);
            }
        }
    }
View Full Code Here

        if (rand.nextInt(10) == 0 && World.doesBlockHaveSolidTopSurface(world, x, y - 1, z) && !world.getBlock(x, y - 2, z).getMaterial().blocksMovement()) {
            double px = (double) ((float) x + rand.nextFloat());
            double py = (double) y - 1.05D;
            double pz = (double) ((float) z + rand.nextFloat());

            EntityFX fx = new EntityDropParticleFX(world, px, py, pz, particleRed, particleGreen, particleBlue);
            FMLClientHandler.instance().getClient().effectRenderer.addEffect(fx);
        }
    }
View Full Code Here

        if (rand.nextInt(10) == 0 && World.doesBlockHaveSolidTopSurface(world, x, y - 1, z) && !world.getBlock(x, y - 2, z).getMaterial().blocksMovement()) {
            double px = (double) ((float) x + rand.nextFloat());
            double py = (double) y - 1.05D;
            double pz = (double) ((float) z + rand.nextFloat());

            EntityFX fx = new EntityDropParticleFX(world, px, py, pz, particleRed, particleGreen, particleBlue);
            FMLClientHandler.instance().getClient().effectRenderer.addEffect(fx);
        }
    }
View Full Code Here

      double px = x + rand.nextFloat();
      double py = y - 1.05D;
      double pz = z + rand.nextFloat();

      EntityFX fx = new EntityDropParticleFX(world, px, py, pz, particleRed, particleGreen, particleBlue);
      FMLClientHandler.instance().getClient().effectRenderer.addEffect(fx);
    }
  }
View Full Code Here

TOP

Related Classes of net.minecraft.client.particle.EntityFX

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.