Explorer Map API

This commit is contained in:
William Blake Galbreath
2025-01-12 17:44:42 -08:00
committed by granny
parent 48b276623c
commit e8d65f8764
6 changed files with 48 additions and 68 deletions

View File

@@ -0,0 +1,15 @@
--- a/src/main/java/org/bukkit/map/MapRenderer.java
+++ b/src/main/java/org/bukkit/map/MapRenderer.java
@@ -54,4 +_,12 @@
*/
public abstract void render(@NotNull MapView map, @NotNull MapCanvas canvas, @NotNull Player player);
+ // Purpur - start - Explorer Map API
+ /**
+ * Check if this is an explorer (aka treasure) map.
+ *
+ * @return True if explorer map
+ */
+ public abstract boolean isExplorerMap();
+ // Purpur - end - Explorer Map API
}