Package org.bukkit.map
Class MapRenderer
- java.lang.Object
-
- org.bukkit.map.MapRenderer
-
public abstract class MapRenderer extends Object
Represents a renderer for a map.
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
initialize(MapView map)
Initialize this MapRenderer for the given map.boolean
isContextual()
Get whether the renderer is contextual, i.e. has different canvases for different players.abstract void
render(MapView map, MapCanvas canvas, Player player)
Render to the given map.
-
-
-
Constructor Detail
-
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 Detail
-
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
public void initialize(@NotNull MapView map)
Initialize this MapRenderer for the given map.- Parameters:
map
- The MapView being initialized.
-
-