Package net.citizensnpcs.trait
Class HomeTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.HomeTrait
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
double
void
run()
Called every tick if overridden.void
setDelayTicks
(int delay) void
setDistanceBlocks
(double distance) void
setHomeLocation
(Location location) void
setReturnStrategy
(HomeTrait.ReturnStrategy strategy)
-
Constructor Details
-
HomeTrait
public HomeTrait()
-
-
Method Details
-
getDelayTicks
public int getDelayTicks() -
getDistanceBlocks
public double getDistanceBlocks() -
getHomeLocation
-
getReturnStrategy
-
run
public void run()Description copied from class:Trait
Called every tick if overridden. -
setDelayTicks
public void setDelayTicks(int delay) -
setDistanceBlocks
public void setDistanceBlocks(double distance) -
setHomeLocation
-
setReturnStrategy
-