Package net.citizensnpcs.trait.waypoint
Class Waypoint
java.lang.Object
net.citizensnpcs.trait.waypoint.Waypoint
- All Implemented Interfaces:
Locatable
Represents a
Location with a number of WaypointTriggers that activate on reaching the location.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTrigger(WaypointTrigger trigger) voiddescribeTriggers(CommandSender sender) doubleReturns the distance in blocks to another waypoint.booleaninthashCode()voidRuns waypoint triggers for the given NPC.
-
Constructor Details
-
Waypoint
public Waypoint()For persistence - avoid using otherwise. -
Waypoint
-
-
Method Details
-
addTrigger
-
describeTriggers
-
distance
Returns the distance in blocks to another waypoint. -
equals
-
getLocation
- Specified by:
getLocationin interfaceLocatable
-
getTriggers
-
hashCode
public int hashCode() -
onReach
Runs waypoint triggers for the given NPC.
-