[WIP] Poi API#7187
Conversation
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
None of this is really exposed in the current API, feedback here would be appreciated. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
I'll finish this up and just let it sit here for any additional feedback. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
K |
|
Darn phone decided to scroll right to the close button. |
| + Collection<RegisteredPoi> getPoisInRange(@NotNull Location location, int range); | ||
| + | ||
| + @Nullable | ||
| + RegisteredPoi getClosestPoi(@NotNull Location location, int range, @NotNull Predicate<PoiType> poiTypePredicate, @NotNull Predicate<Location> locationPredicate); |
There was a problem hiding this comment.
Maybe create the mirror function (locateNearestPOI) in bukkit world since there already locateNearestStructure and locateNearestBiome. Also why not the name PoiBlock instead of RegisteredPoi ?
Allows methods for accessing poi blocks
An example is provided in the test plugin, where all nearby POI will be marked with a redstone block on top of it.
Documentation is not yet finished, feedback is welcome!!