Package pneumaticCraft.common.entity.projectile

Examples of pneumaticCraft.common.entity.projectile.EntityVortex


    @Override
    public ItemStack onItemRightClick(ItemStack iStack, World world, EntityPlayer player){
        if(iStack.getItemDamage() < getMaxDamage()) {
            double factor = 0.2D * getPressure(iStack);
            world.playSoundAtEntity(player, Sounds.CANNON_SOUND, 1.0F, 0.7F + (float)factor * 0.2F /* 1.0F */);
            EntityVortex vortex = new EntityVortex(world, player);
            vortex.motionX *= factor;
            vortex.motionY *= factor;
            vortex.motionZ *= factor;
            if(!world.isRemote) world.spawnEntityInWorld(vortex);

View Full Code Here

TOP

Related Classes of pneumaticCraft.common.entity.projectile.EntityVortex

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.