Package appeng.client.render.effects

Examples of appeng.client.render.effects.EnergyFx


  {
    float x = (float) (((Platform.getRandomInt() % 100) * 0.01) - 0.5) * 0.7f;
    float y = (float) (((Platform.getRandomInt() % 100) * 0.01) - 0.5) * 0.7f;
    float z = (float) (((Platform.getRandomInt() % 100) * 0.01) - 0.5) * 0.7f;

    EnergyFx fx = new EnergyFx( w, posX + x, posY + y, posZ + z, Items.diamond );

    fx.motionX = -x * 0.1;
    fx.motionY = -y * 0.1;
    fx.motionZ = -z * 0.1;

 
View Full Code Here


    World world = ClientHelper.proxy.getWorld();

    for (int zz = 0; zz < (mode ? 32 : 8); zz++)
      if ( CommonHelper.proxy.shouldAddParticles( Platform.getRandom() ) )
      {
        EnergyFx fx = new EnergyFx( world, x + (mode ? (Platform.getRandomInt() % 100) * 0.01 : (Platform.getRandomInt() % 100) * 0.005 - 0.25), y
            + (mode ? (Platform.getRandomInt() % 100) * 0.01 : (Platform.getRandomInt() % 100) * 0.005 - 0.25), z
            + (mode ? (Platform.getRandomInt() % 100) * 0.01 : (Platform.getRandomInt() % 100) * 0.005 - 0.25), Items.diamond );

        if ( !mode )
          fx.fromItem( d );

        fx.motionX = -0.1 * d.offsetX;
        fx.motionY = -0.1 * d.offsetY;
        fx.motionZ = -0.1 * d.offsetZ;

 
View Full Code Here

TOP

Related Classes of appeng.client.render.effects.EnergyFx

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.