@Override public void setMoveTo(double x, double y, double z, double speedIn) { super.setMoveTo(x,y,z,speedIn); this.targetPos.setTarget(x, y, z); }
@Override public void setMoveTo(double x, double y, double z, double speedIn) { super.setMoveTo(x,y,z,speedIn); this.targetPos.setTarget(x, y, z); }
@Override public void setMoveTo(double x, double y, double z, double speedIn) { super.setMoveTo(x,y,z,speedIn); this.targetPos.setTarget(x, y, z); }
@Override public void setMoveTo(double x, double y, double z, double speedIn) { if (grasshopper.isInWater()) speedIn = 1.5D; super.setMoveTo(x, y, z, speedIn); if (speedIn > 0.0D) nextJumpSpeed = speedIn; } }
@Override public void setMoveTo(double x, double y, double z, float moveSpeed) { getMoveHelper().setMoveTo(x, y, z, moveSpeed); }
@Override public void startExecuting() { Random random = this.dino.getRNG(); double destinationX = this.dino.posX + (double) ((random.nextFloat() * 2.0F - 1.0F) * 16.0F); double destinationY = this.dino.posY + (double) ((random.nextFloat() * 2.0F - 1.0F) * 16.0F); double destinationZ = this.dino.posZ + (double) ((random.nextFloat() * 2.0F - 1.0F) * 16.0F); this.dino.getMoveHelper().setMoveTo(destinationX, destinationY, destinationZ, 1.0D); } }
@Override public void onUpdate() { super.onUpdate(); if (motionY < 0.0D) motionY *= 0.2D; if(isInWater()) getMoveHelper().setMoveTo(this.posX, this.posY + 1, this.posZ, 0.32D); }
public void startExecuting() { this.stymphalianBird.getMoveHelper().setMoveTo(hidePlace.x, hidePlace.y, hidePlace.z, 3D); this.stymphalianBird.getLookHelper().setLookPosition(hidePlace.x, hidePlace.y, hidePlace.z, 180.0F, 20.0F); }
@Override public void onUpdate() { super.onUpdate(); if (motionY < 0.0D) motionY *= 0.4D; if(isInWater()) getMoveHelper().setMoveTo(this.posX, this.posY + 1, this.posZ, 0.32D); }
public void startExecuting() { this.pixie.getMoveHelper().setMoveTo(hidePlace.x, hidePlace.y, hidePlace.z, 1D); this.pixie.getLookHelper().setLookPosition(hidePlace.x, hidePlace.y, hidePlace.z, 180.0F, 20.0F); }
public void updateTask() { if(this.myrmex.mate != null && (this.myrmex.getDistance(this.myrmex.mate) > 30 || this.myrmex.getNavigator().noPath())) { this.myrmex.getMoveHelper().setMoveTo(this.myrmex.mate.posX, this.myrmex.posY, this.myrmex.mate.posZ, movementSpeed); } }
/** * Execute a one shot task or start executing a continuous task */ public void startExecuting() { EntityLivingBase entitylivingbase = EntityGaiaBanshee.this.getAttackTarget(); Vec3d vec3d = entitylivingbase.getPositionEyes(1.0F); EntityGaiaBanshee.this.moveHelper.setMoveTo(vec3d.x, vec3d.y, vec3d.z, 1.0D); EntityGaiaBanshee.this.setCharging(true); EntityGaiaBanshee.this.playSound(SoundEvents.ENTITY_VEX_CHARGE, 1.0F, 1.0F); }
@Override public void onLivingUpdate() { if (getMoveHelper().isUpdating() && motionY < 0.0D) motionY *= 0.2D; else motionY *= 0.75D; if (isInWater()) getMoveHelper().setMoveTo(this.posX, this.posY + 1, this.posZ, 0.32D); super.onLivingUpdate(); }
@Override public void startExecuting() { this.taskOwner.getMoveHelper().setMoveTo(this.targetEntity.posX, this.targetEntity.posY, this.targetEntity.posZ, 0.25D); if (this.taskOwner.getAttackTarget() == null) { this.taskOwner.getLookHelper().setLookPosition(this.targetEntity.posX, this.targetEntity.posY, this.targetEntity.posZ, 180.0F, 20.0F); } super.startExecuting(); }
public void setMovementSpeed(double newSpeed) { getNavigator().setSpeed(newSpeed); moveHelper.setMoveTo(moveHelper.getX(), moveHelper.getY(), moveHelper.getZ(), newSpeed); }
@Override public void onUpdate() { super.onUpdate(); if (isAIDisabled() || isDead) return; if (world.isRemote) return; fallDistance = 0; if (getAttackTarget() != null) { moveHelper.setMoveTo(getAttackTarget().posX, getAttackTarget().posY, getAttackTarget().posZ, 1); } }
public void updateTask() { target = EntityAmphithere.getPositionRelativetoGround(EntityAmphithere.this, EntityAmphithere.this.world, EntityAmphithere.this.posX + EntityAmphithere.this.rand.nextInt(30) - 15, EntityAmphithere.this.posZ + EntityAmphithere.this.rand.nextInt(30) - 15, EntityAmphithere.this.rand); if (EntityAmphithere.this.world.isAirBlock(target)) { EntityAmphithere.this.moveHelper.setMoveTo((double) target.getX() + 0.5D, (double) target.getY() + 0.5D, (double) target.getZ() + 0.5D, 0.25D); if (EntityAmphithere.this.getAttackTarget() == null) { EntityAmphithere.this.getLookHelper().setLookPosition((double) target.getX() + 0.5D, (double) target.getY() + 0.5D, (double) target.getZ() + 0.5D, 180.0F, 20.0F); } } } }
public void updateTask() { if (!isDirectPathBetweenPoints(EntityMyrmexRoyal.this.getPosition(), target)) { target = EntityMyrmexRoyal.getPositionRelativetoGround(EntityMyrmexRoyal.this, EntityMyrmexRoyal.this.world, EntityMyrmexRoyal.this.posX + EntityMyrmexRoyal.this.rand.nextInt(15) - 7, EntityMyrmexRoyal.this.posZ + EntityMyrmexRoyal.this.rand.nextInt(15) - 7, EntityMyrmexRoyal.this.rand); } if (EntityMyrmexRoyal.this.world.isAirBlock(target)) { EntityMyrmexRoyal.this.moveHelper.setMoveTo((double) target.getX() + 0.5D, (double) target.getY() + 0.5D, (double) target.getZ() + 0.5D, 0.25D); if (EntityMyrmexRoyal.this.getAttackTarget() == null) { EntityMyrmexRoyal.this.getLookHelper().setLookPosition((double) target.getX() + 0.5D, (double) target.getY() + 0.5D, (double) target.getZ() + 0.5D, 180.0F, 20.0F); } } } }
public void updateTask() { if (!isDirectPathBetweenPoints(EntityPixie.this.getPosition(), target)) { target = EntityPixie.getPositionRelativetoGround(EntityPixie.this, EntityPixie.this.world, EntityPixie.this.posX + EntityPixie.this.rand.nextInt(15) - 7, EntityPixie.this.posZ + EntityPixie.this.rand.nextInt(15) - 7, EntityPixie.this.rand); } if (EntityPixie.this.world.isAirBlock(target)) { EntityPixie.this.moveHelper.setMoveTo((double) target.getX() + 0.5D, (double) target.getY() + 0.5D, (double) target.getZ() + 0.5D, 0.25D); if (EntityPixie.this.getAttackTarget() == null) { EntityPixie.this.getLookHelper().setLookPosition((double) target.getX() + 0.5D, (double) target.getY() + 0.5D, (double) target.getZ() + 0.5D, 180.0F, 20.0F); } } } }
public void updateTask() { if (EntityAmphithere.this.getDistance(target.getX(), target.getY(), target.getZ()) < 5) { target = EntityAmphithere.getPositionInOrbit(EntityAmphithere.this, world, EntityAmphithere.this.orbitPos, EntityAmphithere.this.rand); } if (EntityAmphithere.this.world.isAirBlock(target)) { EntityAmphithere.this.moveHelper.setMoveTo((double) target.getX() + 0.5D, (double) target.getY() + 0.5D, (double) target.getZ() + 0.5D, 0.25D); if (EntityAmphithere.this.getAttackTarget() == null) { EntityAmphithere.this.getLookHelper().setLookPosition((double) target.getX() + 0.5D, (double) target.getY() + 0.5D, (double) target.getZ() + 0.5D, 180.0F, 20.0F); } } } }