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)
| 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 | } |