Skip to content

Add support for waypoints for locatorbar #1336

@CraziiDust

Description

@CraziiDust

Hi!
That would be nice if we have support for waypoints for locatorbar.
Based on a waypoint packet, the following methods can be used:

//Track new waypoint
Audience.track(String id, Waypoint waypoint);
Audience.track(UUID uuid, Waypoint waypoint);
//Remove tracked waypoint
Audience.untrack(UUID uuid);
Audience.untrack(String id);
 //Update tracked waypoint
Audience.update(UUID uuid, Waypoint waypoint);
Audience.update(String id, Waypoint waypoint);

and the waypoint class:

Waypoint.empty(); //Empty waypoint

Waypoint.vector(TextColor color, int x, int y, int z); //Vector based waypoint with default style (minecraft:default)
Waypoint.vector(TextColor color, Key style, int x, int y, int z); //Vector based waypoint with style

Waypoint.chunk(TextColor color,  int x, int z); //Chunk based waypoint with default style (minecraft:default)
Waypoint.chunk(TextColor color, Key style, int x, int z); //Chunk based waypoint with style

Waypoint.azimuth(TextColor color,  float angle); //Azimuth based waypoint with default style (minecraft:default)
Waypoint.azimuth(TextColor color, Key style, float angle); //Azimuth based waypoint with style

Thank you for reading!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions