MCPcopy Create free account
hub / github.com/boxbeam/RedLib / getPath

Method getPath

src/redempt/redlib/region/SelectionTool.java:120–126  ·  view source on GitHub ↗

Creates a path of Locations, one block apart, based on the locations selected by the player @param uuid The UUID of the player @return The Path selected by the player, or null if the player has not selected 2 locations

(UUID uuid)

Source from the content-addressed store, hash-verified

118 * @return The Path selected by the player, or null if the player has not selected 2 locations
119 */
120 public List<Location> getPath(UUID uuid) {
121 Location[] locations = selections.get(uuid);
122 if (locations[0] == null || locations[1] == null) {
123 return null;
124 }
125 return Path.getPath(locations[0], locations[1]);
126 }
127
128}

Callers

nothing calls this directly

Calls 2

getPathMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected