Package org.bukkit.map
Class MapRenderer
java.lang.Object
org.bukkit.map.MapRenderer
Represents a renderer for a map.
- 
Constructor SummaryConstructorsConstructorDescriptionInitialize the map renderer base to be non-contextual.MapRenderer(boolean contextual) Initialize the map renderer base with the given contextual status.
- 
Method SummaryModifier and TypeMethodDescriptionvoidinitialize(MapView map) Initialize this MapRenderer for the given map.final booleanGet whether the renderer is contextual, i.e.abstract voidRender to the given map.
- 
Constructor Details- 
MapRendererpublic MapRenderer()Initialize the map renderer base to be non-contextual. SeeisContextual().
- 
MapRendererpublic MapRenderer(boolean contextual) Initialize the map renderer base with the given contextual status.- Parameters:
- contextual- Whether the renderer is contextual. See- isContextual().
 
 
- 
- 
Method Details- 
isContextualpublic final boolean isContextual()Get whether the renderer is contextual, i.e. has different canvases for different players.- Returns:
- True if contextual, false otherwise.
 
- 
initializeInitialize this MapRenderer for the given map.- Parameters:
- map- The MapView being initialized.
 
- 
renderpublic abstract void render(@NotNull MapView map, @NotNull MapCanvas canvas, @NotNull Player player) Render to the given map.- Parameters:
- map- The MapView being rendered to.
- canvas- The canvas to use for rendering.
- player- The player who triggered the rendering.
 
 
-