public abstract class MapRenderer extends Object
| Constructor | Description |
|---|---|
MapRenderer() |
Initialize the map renderer base to be non-contextual.
|
MapRenderer(boolean contextual) |
Initialize the map renderer base with the given contextual status.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
initialize(@NotNull MapView map) |
Initialize this MapRenderer for the given map.
|
boolean |
isContextual() |
Get whether the renderer is contextual, i.e.
|
abstract void |
render(@NotNull MapView map,
@NotNull MapCanvas canvas,
@NotNull Player player) |
Render to the given map.
|
public MapRenderer()
isContextual().public MapRenderer(boolean contextual)
contextual - Whether the renderer is contextual. See isContextual().public final boolean isContextual()
public void initialize(@NotNull
@NotNull MapView map)
map - The MapView being initialized.public abstract void render(@NotNull
@NotNull MapView map,
@NotNull
@NotNull MapCanvas canvas,
@NotNull
@NotNull Player player)
map - The MapView being rendered to.canvas - The canvas to use for rendering.player - The player who triggered the rendering.Copyright © 2020. All rights reserved.