/** * Resets the task */ public void resetTask() { this.theOwner = null; this.petPathfinder.clearPath(); }
/** * Resets the task */ @Override public void resetTask() { getNavigator().clearPath(); }
/** * Resets the task */ public void resetTask() { this.theOwner = null; this.petPathfinder.clearPath(); this.thePet.setPathPriority(PathNodeType.WATER, this.oldWaterCost); }
/** * Resets the task */ public void resetTask() { this.entity.getNavigator().clearPath(); this.pickupTarget = null; }
/** * Reset the task's internal state. Called when this task is interrupted by another one */ @Override public void resetTask() { this.owner = null; this.petPathfinder.clearPath(); this.entity.setPathPriority(PathNodeType.WATER, this.oldWaterCost); }
@Override public void resetTask() { attacker.getNavigator().clearPath(); }
@Override public void resetTask() { attacker.getNavigator().clearPath(); }
/** * Resets the task */ public void resetTask() { this.theOwner = null; this.petPathfinder.clearPath(); this.thePet.setPathPriority(PathNodeType.WATER, this.oldWaterCost); }
/** * Reset the task's internal state. Called when this task is interrupted by another one */ public void resetTask() { this.temptingPlayer = null; this.temptedEntity.getNavigator().clearPath(); this.delayTemptCounter = 100; this.isRunning = false; }
@Override public void resetTask() { this.path = null; this.dinosaur.getNavigator().clearPath(); }
/** * Execute a one shot task or start executing a continuous task */ public void startExecuting() { this.eatingGrassTimer = 40; this.world.setEntityState(this.grassEaterEntity, (byte) 10); this.grassEaterEntity.getNavigator().clearPath(); }
/** * Execute a one shot task or start executing a continuous task */ @Override public void startExecuting() { this.castTimer = 100; this.world.setEntityState(this.entity, (byte) 53); this.entity.getNavigator().clearPath(); }
@Override public void resetTask() { this.owner = null; this.entity.getNavigator().clearPath(); this.entity.setPathPriority(PathNodeType.WATER, this.oldWaterCost); }
@Override public void resetTask() { ticksToWork = 0; ticksAtSite = 0; moveRetryDelay = 0; npc.getNavigator().clearPath(); npc.removeAITask(TASK_WORK + TASK_MOVE); }
public void resetTask() { super.resetTask(); this.seeTime = 0; this.attackTime = -1; this.entity.resetActiveHand(); this.entity.getNavigator().clearPath(); target = null; }
@Override public void resetTask() { fleeVector = null; npc.getNavigator().clearPath(); npc.setAttackTarget(null); npc.removeAITask(TASK_GO_HOME + TASK_FLEE + TASK_ALARM); homeCompromised = false; }
@Override public void clearPath() { if (hasMount()) { ((EntityLiving) entity.getRidingEntity()).getNavigator().clearPath(); } super.clearPath(); }
@Override protected void doAttack(double dist) { npc.removeAITask(TASK_MOVE); this.npc.getNavigator().clearPath(); if (this.getAttackDelay() <= 0) { float pwr = (float) (attackDistance / dist); pwr = Floats.constrainToRange(pwr, 0.1f, 1f); this.rangedAttacker.attackEntityWithRangedAttack(getTarget(), pwr); this.setAttackDelay(35); } } }
@Override protected void afterEaten() { EntityBeetleLarva beetleLarva = (EntityBeetleLarva) entity; beetleLarva.getEntityWorld().setBlockToAir(new BlockPos(cropX, cropY, cropZ)); beetleLarva.setIsEating(false); beetleLarva.setLarvaSize(beetleLarva.getLarvaSize() + 0.1F); entity.getNavigator().clearPath(); } }
@Override public void updateTask() { this.npc.getLookHelper().setLookPositionWithEntity(this.target, 10.0F, (float) this.npc.getVerticalFaceSpeed()); double distance = npc.getDistanceSq(target); if (distance > followStopDistance) { this.npc.addAITask(TASK_MOVE); moveToEntity(target, distance); } else { this.npc.removeAITask(TASK_MOVE); this.npc.getNavigator().clearPath(); } }