Package me.ashtheking.dragons.meta

Examples of me.ashtheking.dragons.meta.Fireball


        {
        double d5 = targetedEntity.posX - dragonHead.posX;
        double d6 = (targetedEntity.boundingBox.minY + (double) (targetedEntity.height / 2.0F))
            - (dragonHead.posY + (double) (dragonHead.height / 2.0F) - 10);
        double d7 = targetedEntity.posZ - dragonHead.posZ;
        Fireball entityfireball = new Fireball(worldObj, this, d5, d6,
            d7);
        double d8 = 2D;
        Vec3D vec3d = getLook(1.0F);
        entityfireball.posX = dragonHead.posX + vec3d.xCoord * d8;
        entityfireball.posY = dragonHead.posY - 2;
          //  + (double) (dragonHead.height / 2.0F) + 0.5D;
        entityfireball.posZ = dragonHead.posZ + vec3d.zCoord * d8;
        for (int x = 0; x < 3; x++)
          entityfireball.onUpdate();
       
        entityfireball.motionX *= 2;
        entityfireball.motionY *= 2;
        entityfireball.motionZ *= 2;
     
View Full Code Here

TOP

Related Classes of me.ashtheking.dragons.meta.Fireball

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.