Package net.citizensnpcs.trait
Class PausePathfindingTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.PausePathfindingTrait
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
double
void
onInteract
(NPCRightClickEvent event) boolean
void
run()
Called every tick if overridden.void
setLockoutDuration
(int ticks) void
setPauseDuration
(int ticks) void
setPauseOnRightClick
(boolean rightclick) void
setPlayerRange
(double blockRange)
-
Constructor Details
-
PausePathfindingTrait
public PausePathfindingTrait()
-
-
Method Details
-
getLockoutDuration
public int getLockoutDuration() -
getPauseDuration
public int getPauseDuration() -
getPlayerRangeInBlocks
public double getPlayerRangeInBlocks() -
onInteract
-
pauseOnRightClick
public boolean pauseOnRightClick() -
run
public void run()Description copied from class:Trait
Called every tick if overridden. -
setLockoutDuration
public void setLockoutDuration(int ticks) -
setPauseDuration
public void setPauseDuration(int ticks) -
setPauseOnRightClick
public void setPauseOnRightClick(boolean rightclick) -
setPlayerRange
public void setPlayerRange(double blockRange)
-