Package net.minecraft.client.particle

Examples of net.minecraft.client.particle.EntityFX


      for (int i = 0; i < 1; i++) {
        float xOffset = -0.2F - rand.nextFloat() * 0.6F;
        float yOffset = -0.1F + rand.nextFloat() * 0.2F;
        float zOffset = -0.2F - rand.nextFloat() * 0.6F;       
       
        EntityFX fx = Minecraft.getMinecraft().renderGlobal.doSpawnParticle("spell", startX + xOffset, startY + yOffset, startZ + zOffset, 0.0D, 0.0D, 0.0D);
        if(fx != null) {
          fx.setRBGColorF(0.2f, 0.2f, 0.8f);         
          fx.motionY *= 0.5f;
        }

      }
    }
View Full Code Here


       
        float xOffset = 0.1F - player.worldObj.rand.nextFloat() * 0.2F;
        float yOffset = 0.1F - player.worldObj.rand.nextFloat() * 0.2F;
        float zOffset = 0.1F - player.worldObj.rand.nextFloat() * 0.2F
       
        EntityFX fx = Minecraft.getMinecraft().renderGlobal.doSpawnParticle("spell",
            message.x + xOffset, message.y + yOffset, message.z + zOffset, 0.0D, 0.0D, 0.0D);
        if(fx != null) {
          fx.setRBGColorF(0.2f, 0.8f, 0.2f);
          fx.motionY *= 0.5f;
        }
      }

    }
View Full Code Here

      for (int i = 0; i < 2; i++) {
        float xOffset = -0.2F - rand.nextFloat() * 0.6F;
        float yOffset = -0.1F + rand.nextFloat() * 0.2F;
        float zOffset = -0.2F - rand.nextFloat() * 0.6F;       
       
        EntityFX fx = Minecraft.getMinecraft().renderGlobal.doSpawnParticle("spell", startX + xOffset, startY + yOffset, startZ + zOffset, 0.0D, 0.0D, 0.0D);
        //EntityFX fx = Minecraft.getMinecraft().renderGlobal.doSpawnParticle("instantSpell", startX + xOffset, startY + yOffset, startZ + zOffset, 0.0D, 0.0D, 0.0D);
        if(fx != null) {
          fx.setRBGColorF(0.2f, 0.2f, 0.8f);         
          //fx.setRBGColorF(0.1f, 0.4f, 0.1f);
          fx.motionY *= 0.5f;
        }

      }
View Full Code Here

        for (int i = 0; i < 2; i++) {
          float xOffset = 0.5f + (world.rand.nextFloat() * 2.0F - 1.0F) * 0.125f;
          float yOffset = 0.1f;
          float zOffset = 0.5f + (world.rand.nextFloat() * 2.0F - 1.0F) * 0.125f;
         
          EntityFX fx = Minecraft.getMinecraft().renderGlobal.doSpawnParticle("bubble", x + xOffset, y + yOffset, z + zOffset, -0.1D, 0.5D, 0.0D);
          if(fx != null) {           
            fx.setRBGColorF(0.4f, 0.4f, 0.1f);
          }
         
        }
        if(Config.machineSoundsEnabled) {
          float volume = (Config.machineSoundVolume * 0.045f);
 
View Full Code Here

      for (int i = 0; i < 1; i++) {
        float xOffset = -0.2F - rand.nextFloat() * 0.6F;
        float yOffset = -0.1F + rand.nextFloat() * 0.2F;
        float zOffset = -0.2F - rand.nextFloat() * 0.6F;       
       
        EntityFX fx = Minecraft.getMinecraft().renderGlobal.doSpawnParticle("spell", startX + xOffset, startY + yOffset, startZ + zOffset, 0.0D, 0.0D, 0.0D);
        if(fx != null) {
          fx.setRBGColorF(0.2f, 0.2f, 0.8f);         
          fx.motionY *= 0.5f;
        }

      }
    }
View Full Code Here

        } else {
          pz += world.rand.nextFloat() * 0.9 - 0.45;
          vx += front == ForgeDirection.WEST ? -v : v;
        }

        EntityFX fx = Minecraft.getMinecraft().renderGlobal.doSpawnParticle("smoke", px, y + 0.5, pz, vx, 0, vz);
        if(fx != null) {
          fx.setRBGColorF(0.3f + (rand.nextFloat() * 0.1f), 0.1f + (rand.nextFloat() * 0.1f), 0.1f + (rand.nextFloat() * 0.1f));
          fx.motionX *= 0.25f;
          fx.motionY *= 0.25f;
          fx.motionZ *= 0.25f;
        }

View Full Code Here

  @SideOnly(Side.CLIENT)
  private void doParticle()
  {
    Pos3D pos = new Pos3D(posX + (rand.nextFloat()*.6 - 0.3), posY - 0.8 + (rand.nextFloat()*.6 - 0.3), posZ + (rand.nextFloat()*.6 - 0.3));

    EntityFX fx = new EntityReddustFX(worldObj, pos.xPos, pos.yPos, pos.zPos, 1, 0, 0, 0);
    fx.setRBGColorF(color.getColor(0), color.getColor(1), color.getColor(2));

    Minecraft.getMinecraft().effectRenderer.addEffect(fx);
  }
View Full Code Here

    }
  }

  public void spawnAndSetParticle(String s, World world, double x, double y, double z, double velX, double velY, double velZ)
  {
    EntityFX fx = null;

    if(s.equals("flame"))
    {
      fx = new EntityJetpackFlameFX(world, x, y, z, velX, velY, velZ);
    }
View Full Code Here

        if (mc != null && mc.renderViewEntity != null && mc.effectRenderer != null)
        {
            double dX = mc.renderViewEntity.posX - position.x;
            double dY = mc.renderViewEntity.posY - position.y;
            double dZ = mc.renderViewEntity.posZ - position.z;
            EntityFX particle = null;
            double viewDistance = 64.0D;

            if (particleID.equals("whiteSmokeIdle"))
            {
                particle = new EntityFXLaunchSmoke(mc.theWorld, position, motion, 1.0F, false);
View Full Code Here

            for (int i = 0; i < 4; i++)
            {
                if (mc != null && mc.renderViewEntity != null && mc.effectRenderer != null && mc.theWorld != null)
                {
                    final EntityFX fx = new EntityFXSparks(mc.theWorld, x - 0.15 + 0.5, y + 1.2, z + 0.15 + 0.5, mc.theWorld.rand.nextDouble() / 20 - mc.theWorld.rand.nextDouble() / 20, mc.theWorld.rand.nextDouble() / 20 - mc.theWorld.rand.nextDouble() / 20);

                    if (fx != null)
                    {
                        mc.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.