Interface SpeedModifier

All Known Subinterfaces:
EntityNavigation, NavigationPath
All Known Implementing Classes:
Memory.WalkingTarget, PathfinderAvoidEntity, PathfinderBreed, PathfinderCatOnBed, PathfinderCatOnBlock, PathfinderFleeSun, PathfinderFollowMob, PathfinderFollowOwner, PathfinderFollowParent, PathfinderLlamaFollowCaravan, PathfinderMeleeAttack, PathfinderMoveThroughVillage, PathfinderMoveToBlock, PathfinderMoveTowardsRestriction, PathfinderMoveTowardsTarget, PathfinderPanic, PathfinderRandomStroll, PathfinderRandomStrollFlying, PathfinderRandomStrollInVillage, PathfinderRandomStrollLand, PathfinderRandomStrollToVillage, PathfinderRandomSwim, PathfinderRangedAttack, PathfinderRangedBowAttack, PathfinderRangedCrossbowAttack, PathfinderRemoveBlock, PathfinderTameHorse, PathfinderTempt, PathfinderZombieAttack

public interface SpeedModifier
Represents a Pathfinder that has a speed modifier

The number from getSpeedModifier() will be multiplied by the original speed.

Ex: A Sheep with an AvoidGoal with a movement speed of 0.5, if the speed modifier is 2 then the sheep will move twice as fast or at a movement speed attribute of 1.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final float
    Default Speed Modifier
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Get the Speed Modifier of this Pathfinder.
    void
    setSpeedModifier(double mod)
    Sets the Speed Modifier of this Pathfinder.
  • Field Details

    • DEFAULT_SPEED_MODIFIER

      static final float DEFAULT_SPEED_MODIFIER
      Default Speed Modifier
      See Also:
  • Method Details

    • getSpeedModifier

      double getSpeedModifier()
      Get the Speed Modifier of this Pathfinder.
      Returns:
      Speed Modifier
    • setSpeedModifier

      void setSpeedModifier(double mod)
      Sets the Speed Modifier of this Pathfinder.
      Parameters:
      mod - Modifier to set