/** * Execute a one shot task or start executing a continuous task */ @Override public void startExecuting() { if (this.entityPathEntity != null) { this.entityPathNavigate.setPath(this.entityPathEntity, this.farSpeed); } }
@Override public void startExecuting() { this.pathNavigator.setPath(path, farSpeed); }
public void resetTask() { nextRoom = BlockPos.ORIGIN; this.myrmex.getNavigator().setPath(null, this.movementSpeed); }
@Override public void startExecuting() { attacker.getNavigator().setPath(entityPathEntity, speedTowardsTarget); ticksUntilNextPathingAttempt = 0; }
/** * Execute a one shot task or start executing a continuous task */ public void startExecuting() { this.attacker.getNavigator().setPath(this.path, this.speedTowardsTarget); this.delayCounter = 0; }
@Override public void startExecuting() { this.dragon.getNavigator().setPath(this.entityPathEntity, this.speedTowardsTarget); this.delayCounter = 0; }
/** * Execute a one shot task or start executing a continuous task */ public void startExecuting() { this.entity.getNavigator().setPath(this.entityPathEntity, this.speedTowardsTarget); this.delayCounter = 0; }
@Override public void startExecuting() { ticksLeft = this.entity.getEntityWorld().rand.nextInt(100) + 100; this.entityPathNavigate.setPath(this.entityPathEntity, this.farSpeed); }
public void resetTask() { nextRoom = BlockPos.ORIGIN; nextCocoon = null; this.myrmex.getNavigator().setPath(null, this.movementSpeed); }
@Override public void startExecuting() { this.entity.getNavigator().setPath(this.path, this.movementSpeed); this.active = true; this.gliding = false; }
/** * Execute a one shot task or start executing a continuous task */ @Override public void startExecuting() { PathNavigate nav = getNavigator(); nav.setPath(entityPathEntity, speedTowardsTarget.get()); pathUpdateTimer = 0; }
public void updateTask() { if (--this.delayCounter <= 0) { this.delayCounter = 10; Path path = getPathToEntityLiving(this.childAnimal, this.cyclops); if(path != null){ this.childAnimal.getNavigator().setPath(path, this.moveSpeed); } } }
public void moveToItem(Entity entity) { Path pathentity = getNavigator().getPathToEntityLiving(entity); if (pathentity != null) { getNavigator().setPath(pathentity, 0.5D); } }
@Override public void execute(NPCEntity npc) { Path path = getPathToTarget(npc.getAsEntity()); if (path != null) { npc.getAsEntity().getNavigator().setPath(path, 0.6F); } }
@Override public boolean setPath(Path path, double speed) { if (hasMount()) { ((EntityLiving) entity.getRidingEntity()).getNavigator().setPath(path, speed); } return super.setPath(path, speed); }
protected final void setPath(double x, double y, double z) { Path path = trimPath(npc.getNavigator().getPathToXYZ(x, y, z)); npc.getNavigator().setPath(path, moveSpeed); }
protected final void setPath(BlockPos pos) { Path path = trimPath(npc.getNavigator().getPathToPos(pos)); npc.getNavigator().setPath(path, moveSpeed); }
@Override public void tick(TileAttractor attractor, EntityLiving entity) { EntitySilverfish sf = (EntitySilverfish) entity; Path pathentity = getPathEntityToEntity(entity, attractor.getTarget(), attractor.getRange() * 2); sf.getNavigator().setPath(pathentity, sf.getAIMoveSpeed()); }
@Override public void updateTask() { Path currentPath = this.entity.getNavigator().getPath(); if (this.shore != null && !this.path.isSamePath(currentPath)) { Path path = this.entity.getNavigator().getPathToPos(this.shore); if (path != null && !path.isSamePath(currentPath)) { this.path = path; this.entity.getNavigator().setPath(path, 1.5); } } } }
private void manageMovingToLastKnowMoveLocation(double distanceToTargetSq) { if (distanceToTargetSq <= (double) this.maxChaseDistanceSq && this.pathRetryTimer >= 20) { if (this.entityHost.getNavigator().getPath() != null && this.entityHost.getNavigator().getPath().equals(lastChasePath)) { this.entityHost.getNavigator().clearPath(); } } else if (this.entityHost.getNavigator().noPath()) { lastChasePath = this.entityHost.getNavigator().getPathToEntityLiving(attackTarget); this.entityHost.getNavigator().setPath(lastChasePath, this.entityMoveSpeed); } }