Package net.citizensnpcs.trait.waypoint
Class Waypoint
java.lang.Object
net.citizensnpcs.trait.waypoint.Waypoint
Represents a
Location
with a number of WaypointTrigger
s that activate on reaching the location.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTrigger
(WaypointTrigger trigger) void
describeTriggers
(CommandSender sender) double
Returns the distance in blocks to another waypoint.boolean
int
hashCode()
void
Runs waypoint triggers for the given NPC.toString()
-
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
-
getTriggers
-
hashCode
public int hashCode() -
onReach
Runs waypoint triggers for the given NPC. -
toString
-