Examples of fromItem()


Examples of appeng.client.render.effects.EnergyFx.fromItem()

        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
Copyright © 2018 www.massapi.com. 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.