mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 16:57:42 +01:00
SPIGOT-4958: API to set map trackingPosition
By: md_5 <git@md-5.net>
This commit is contained in:
parent
86dee5827e
commit
d8417eaead
@ -158,6 +158,22 @@ public interface MapView {
|
|||||||
*/
|
*/
|
||||||
public boolean removeRenderer(@Nullable MapRenderer renderer);
|
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
|
* Whether the map will show a smaller position cursor (true), or no
|
||||||
* position cursor (false) when cursor is outside of map's range.
|
* position cursor (false) when cursor is outside of map's range.
|
||||||
|
Loading…
Reference in New Issue
Block a user