Actions API

Charted's quick actions, for shortcut wheels and command palettes.

ChartedActions offers Charted's quick actions to shortcut wheels and command palettes: the world map, the minimap, zoom, a new waypoint and the list. Ids are never renamed; the list may grow. From Charted 0.1.0.

Show them on a wheel #

Java
for (String id : ChartedActions.ids()) {
    // label(id) for the text, icon(id) for the picture,
    // isOn(id) to draw a switch as on or off.
    wheel.add(ChartedActions.label(id), ChartedActions.icon(id), () -> ChartedActions.run(id));
}

The actions #

IdWhat it doesSwitch
charted:world_mapOpens the world mapno
charted:minimapShows or hides the minimapyes
charted:minimap_zoom_out / charted:minimap_zoom_inZooms the minimapno
charted:minimap_rotateTurns the minimap with the player, or keeps north upyes
charted:add_waypointOpens a new waypoint where the player standsno
charted:waypointsOpens the waypoint listno
charted:waypoints_in_worldShows or hides waypoints in the worldyes
charted:waypoints_on_minimapShows or hides waypoints on the minimapyes

Reference #

ChartedActionsWhat it does
ids()Every action id.
label(id)Its name, to show.
icon(id)Its icon.
isOn(id)For a switch: whether it is on now.
run(id)Does it.

Something missing or wrong on this page? Say so on Discord.