Class WaypointEvent
java.lang.Object
journeymap.api.v2.common.event.impl.JourneyMapEvent
journeymap.api.v2.common.event.impl.CommonEvent
journeymap.api.v2.common.event.common.WaypointEvent
This event handles all the CRUD operations of a waypoints.
TODO: Currently only a client side event, will be a common event eventually.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class journeymap.api.v2.common.event.impl.CommonEvent
CommonEvent.Side -
Field Summary
FieldsFields inherited from class journeymap.api.v2.common.event.impl.JourneyMapEvent
timestamp -
Constructor Summary
ConstructorsConstructorDescriptionWaypointEvent(Waypoint waypoint, WaypointEvent.Context context, int dimension) WaypointEvent(Waypoint waypoint, WaypointEvent.Context context, int dimension, CommonEvent.Side side) Server-side constructor. -
Method Summary
Modifier and TypeMethodDescriptionThe event context.intWorld dimension where event occurred.Gets the waypoint that the event is handling.Methods inherited from class journeymap.api.v2.common.event.impl.CommonEvent
getSideMethods inherited from class journeymap.api.v2.common.event.impl.JourneyMapEvent
cancel, isCancellable, isCancelled
-
Field Details
-
waypoint
-
context
-
dimension
public final int dimension
-
-
Constructor Details
-
WaypointEvent
-
WaypointEvent
public WaypointEvent(Waypoint waypoint, WaypointEvent.Context context, int dimension, CommonEvent.Side side) Server-side constructor. Use when firing from a server context.
-
-
Method Details
-
getDimension
public int getDimension()World dimension where event occurred. -
getWaypoint
Gets the waypoint that the event is handling.- Returns:
- - The waypoint.
-
getContext
The event context.- Returns:
- - The context.
-