Package net.minecraft.entity.monster

Examples of net.minecraft.entity.monster.EntityMob.moveEntityWithHeading()


    double z = (zCoord + 0.5D - ent.posZ);
    double distance = Math.sqrt(x * x + y * y + z * z);
    if(distance > 2) {
      EntityMob mod = (EntityMob) ent;
      mod.faceEntity(getTarget(), 180, 0);
      mod.moveEntityWithHeading(0, 1);
      if(mod.posY < yCoord) {
        mod.setJumping(true);
      } else {
        mod.setJumping(false);
      }
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.