From d8417eaead34c619cc613b7d866a2a153fecee4c Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 20 May 2019 19:29:45 +1000 Subject: [PATCH] SPIGOT-4958: API to set map trackingPosition By: md_5 --- .../src/main/java/org/bukkit/map/MapView.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/map/MapView.java b/paper-api/src/main/java/org/bukkit/map/MapView.java index 23b5517400..9b8b68b66d 100644 --- a/paper-api/src/main/java/org/bukkit/map/MapView.java +++ b/paper-api/src/main/java/org/bukkit/map/MapView.java @@ -158,6 +158,22 @@ public interface MapView { */ public boolean removeRenderer(@Nullable MapRenderer renderer); + /** + * Gets whether a position cursor should be shown when the map is near its + * center. + * + * @return tracking status + */ + boolean isTrackingPosition(); + + /** + * Sets whether a position cursor should be shown when the map is near its + * center. + * + * @param trackingPosition tracking status + */ + void setTrackingPosition(boolean trackingPosition); + /** * Whether the map will show a smaller position cursor (true), or no * position cursor (false) when cursor is outside of map's range.