Class PausePathfindingTrait

java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.PausePathfindingTrait
All Implemented Interfaces:
Runnable, Listener

public class PausePathfindingTrait extends Trait
  • Constructor Details

    • PausePathfindingTrait

      public PausePathfindingTrait()
  • Method Details

    • getLockoutDuration

      public int getLockoutDuration()
    • getPauseDuration

      public int getPauseDuration()
    • getPlayerRangeInBlocks

      public double getPlayerRangeInBlocks()
    • onInteract

      public void onInteract(NPCRightClickEvent event)
    • pauseOnRightClick

      public boolean pauseOnRightClick()
    • run

      public void run()
      Description copied from class: Trait
      Called every tick if overridden.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Trait
    • setLockoutDuration

      public void setLockoutDuration(int ticks)
    • setPauseDuration

      public void setPauseDuration(int ticks)
    • setPauseOnRightClick

      public void setPauseOnRightClick(boolean rightclick)
    • setPlayerRange

      public void setPlayerRange(double blockRange)