Class HomeTrait

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

public class HomeTrait extends Trait
  • Constructor Details

    • HomeTrait

      public HomeTrait()
  • Method Details

    • getDelayTicks

      public int getDelayTicks()
    • getDistanceBlocks

      public double getDistanceBlocks()
    • getHomeLocation

      public Location getHomeLocation()
    • getReturnStrategy

      public HomeTrait.ReturnStrategy getReturnStrategy()
    • 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
    • setDelayTicks

      public void setDelayTicks(int delay)
    • setDistanceBlocks

      public void setDistanceBlocks(double distance)
    • setHomeLocation

      public void setHomeLocation(Location location)
    • setReturnStrategy

      public void setReturnStrategy(HomeTrait.ReturnStrategy strategy)