Package net.minecraft.src

Examples of net.minecraft.src.EntityArrow


        if (arrowCritical) {
          j1 += rand.nextInt(j1 / 2 + 2);
        }
        DamageSource damagesource = null;
        if (shootingEntity == null)
          damagesource = DamageSource.causeArrowDamage(new EntityArrow(worldObj), this);
        else
          damagesource = DamageSource.causeArrowDamage(new EntityArrow(worldObj),
              shootingEntity);
        if (movingobjectposition.entityHit.attackEntityFrom(damagesource, j1)) {
          if (movingobjectposition.entityHit instanceof EntityLiving) {
            ((EntityLiving) movingobjectposition.entityHit).arrowHitTempCounter++;
            this.collided = ((EntityLiving) movingobjectposition.entityHit);
View Full Code Here

TOP

Related Classes of net.minecraft.src.EntityArrow

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.