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 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.
-
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:
getLocation
in interfaceLocatable
-
getTriggers
-
hashCode
public int hashCode() -
onReach
Runs waypoint triggers for the given NPC.
-