| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalGroup(WaypointGroup group)
Adds or updates a global waypoint group.
|
void |
addGlobalWaypoint(Waypoint waypoint)
Adds or updates a global waypoint.
|
void |
addPlayerGroup(java.util.UUID playerUUID,
WaypointGroup group)
Adds or updates a waypoint group for the specified player.
|
void |
addPlayerWaypoint(java.util.UUID playerUUID,
Waypoint waypoint)
Adds or updates a waypoint for the specified player.
|
void |
deleteGlobalGroup(java.lang.String guid,
boolean deleteWaypoints)
Deletes the global waypoint group with the given GUID.
|
void |
deleteGlobalWaypoint(java.lang.String guid)
Deletes the global waypoint with the given GUID.
|
void |
deletePlayerGroup(java.util.UUID playerUUID,
java.lang.String guid,
boolean deleteWaypoints)
Deletes the waypoint group with the given GUID for the specified player.
|
void |
deletePlayerWaypoint(java.util.UUID playerUUID,
java.lang.String guid)
Deletes the waypoint with the given GUID for the specified player.
|
java.util.List<WaypointGroup> |
getAllGlobalGroups()
Gets all global waypoint groups.
|
java.util.List<WaypointGroup> |
getAllGroups(java.util.UUID playerUUID)
Gets all waypoint groups for the specified player.
|
WaypointGroup |
getGlobalGroup(java.lang.String guid)
Gets the global waypoint group with the given GUID.
|
Waypoint |
getGlobalWaypoint(java.lang.String guid)
Gets the global waypoint with the given GUID.
|
java.util.List<Waypoint> |
getGlobalWaypoints()
Gets all waypoints that are not tied to specific players.
|
WaypointGroup |
getGroup(java.util.UUID playerUUID,
java.lang.String guid)
Gets the waypoint group with the given GUID for the specified player.
|
IServerOverlayAPI |
getOverlayApi()
Returns the server-side overlay API, used to push polygon overlays to
connected players' JourneyMap clients.
|
Waypoint |
getWaypoint(java.util.UUID playerUUID,
java.lang.String guid)
Gets the waypoint with the given GUID for the specified player.
|
java.util.List<Waypoint> |
getWaypoints()
Gets all waypoints stored on the server for all players and all global waypoints.
|
java.util.List<Waypoint> |
getWaypoints(net.minecraft.server.level.ServerPlayer player)
Gets all waypoints stored for the given server player.
|
java.util.List<Waypoint> |
getWaypoints(java.util.UUID playerUUID)
Gets all waypoints stored for the player with the given UUID.
|
void |
shareWaypoint(Waypoint waypoint,
java.util.UUID fromUUID,
java.lang.String fromName,
java.util.List<java.util.UUID> targetIds,
boolean allKnownUsers)
Programmatically share a waypoint with one or more players.
|
java.util.List<Waypoint> getWaypoints(net.minecraft.server.level.ServerPlayer player)
player - the server playerjava.util.List<Waypoint> getWaypoints(java.util.UUID playerUUID)
playerUUID - the player UUIDjava.util.List<Waypoint> getWaypoints()
Waypoint getWaypoint(java.util.UUID playerUUID, java.lang.String guid)
playerUUID - the player UUIDguid - the waypoint GUIDjava.util.List<WaypointGroup> getAllGroups(java.util.UUID playerUUID)
playerUUID - the player UUIDWaypointGroup getGroup(java.util.UUID playerUUID, java.lang.String guid)
playerUUID - the player UUIDguid - the group GUIDvoid addPlayerWaypoint(java.util.UUID playerUUID,
Waypoint waypoint)
WaypointEvent (CREATE or UPDATE, cancellable).playerUUID - the player UUIDwaypoint - the waypoint to add or updatevoid deletePlayerWaypoint(java.util.UUID playerUUID,
java.lang.String guid)
WaypointEvent (DELETED).playerUUID - the player UUIDguid - the waypoint GUID to deletevoid addPlayerGroup(java.util.UUID playerUUID,
WaypointGroup group)
playerUUID - the player UUIDgroup - the group to add or updatevoid deletePlayerGroup(java.util.UUID playerUUID,
java.lang.String guid,
boolean deleteWaypoints)
playerUUID - the player UUIDguid - the group GUID to deletedeleteWaypoints - if true, also deletes all waypoints belonging to the groupjava.util.List<Waypoint> getGlobalWaypoints()
Waypoint getGlobalWaypoint(java.lang.String guid)
guid - the waypoint GUIDjava.util.List<WaypointGroup> getAllGlobalGroups()
WaypointGroup getGlobalGroup(java.lang.String guid)
guid - the group GUIDvoid addGlobalWaypoint(Waypoint waypoint)
GlobalWaypointEvent (CREATE or UPDATE, cancellable).waypoint - the waypoint to add or updatevoid deleteGlobalWaypoint(java.lang.String guid)
GlobalWaypointEvent (DELETED).guid - the waypoint GUID to deletevoid addGlobalGroup(WaypointGroup group)
GlobalWaypointGroupEvent (CREATE or UPDATE, cancellable).group - the group to add or updatevoid deleteGlobalGroup(java.lang.String guid,
boolean deleteWaypoints)
GlobalWaypointGroupEvent (DELETED).guid - the group GUID to deletedeleteWaypoints - if true, also deletes all waypoints belonging to the groupvoid shareWaypoint(Waypoint waypoint, java.util.UUID fromUUID, java.lang.String fromName, java.util.List<java.util.UUID> targetIds, boolean allKnownUsers)
ServerEventRegistry.WAYPOINT_SHARE_SUBMIT_EVENT (cancellable)
before storing pending entries.waypoint - the waypoint to sharefromUUID - UUID of the player or system initiating the sharefromName - display name shown to recipientstargetIds - specific recipients; ignored if allKnownUsers is trueallKnownUsers - if true, shares with all players in PlayerDataIServerOverlayAPI getOverlayApi()