Class MapRenderer
java.lang.Object
org.bukkit.map.MapRenderer
Represents a renderer for a map.
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize the map renderer base to be non-contextual.MapRenderer(boolean contextual) Initialize the map renderer base with the given contextual status. -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(@NotNull MapView map) Initialize this MapRenderer for the given map.final booleanGet whether the renderer is contextual, i.e.abstract booleanCheck if this is an explorer (aka treasure) map.abstract voidRender to the given map.
-
Constructor Details
-
MapRenderer
public MapRenderer()Initialize the map renderer base to be non-contextual. SeeisContextual(). -
MapRenderer
public MapRenderer(boolean contextual) Initialize the map renderer base with the given contextual status.- Parameters:
contextual- Whether the renderer is contextual. SeeisContextual().
-
-
Method Details
-
isContextual
public final boolean isContextual()Get whether the renderer is contextual, i.e. has different canvases for different players.- Returns:
- True if contextual, false otherwise.
-
initialize
-
render
-
isExplorerMap
public abstract boolean isExplorerMap()Check if this is an explorer (aka treasure) map.- Returns:
- True if explorer map
-