程序包 org.bukkit.map

# 类 MapRenderer

java.lang.Object
org.bukkit.map.MapRenderer

public abstract class MapRenderer extends Object
Represents a renderer for a map.

- ## 构造器概要

  构造器
  构造器
  说明
  `MapRenderer()`
  Initialize the map renderer base to be non-contextual.
  `MapRenderer(boolean contextual)`
  Initialize the map renderer base with the given contextual status.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `void`
  `initialize(@NotNull MapView map)`
  Initialize this MapRenderer for the given map.
  `final boolean`
  `isContextual()`
  Get whether the renderer is contextual, i.e. has different canvases for different players.
  `abstract void`
  `render(@NotNull MapView map, @NotNull MapCanvas canvas, @NotNull Player player)`
  Render to the given map.

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### MapRenderer

    public MapRenderer()
    Initialize the map renderer base to be non-contextual. See `isContextual()`.

  - ### MapRenderer

    public MapRenderer(boolean contextual)
    Initialize the map renderer base with the given contextual status.
    参数:
      `contextual` - Whether the renderer is contextual. See `isContextual()`.

- ## 方法详细资料

  - ### isContextual

    public final boolean isContextual()
    Get whether the renderer is contextual, i.e. has different canvases for different players.
    返回:
      True if contextual, false otherwise.

  - ### initialize

    public void initialize(@NotNull @NotNull MapView map)
    Initialize this MapRenderer for the given map.
    参数:
      `map` - The MapView being initialized.

  - ### render

    public abstract void render(@NotNull @NotNull MapView map, @NotNull @NotNull MapCanvas canvas, @NotNull @NotNull Player player)
    Render to the given map.
    参数:
      `map` - The MapView being rendered to.
      `canvas` - The canvas to use for rendering.
      `player` - The player who triggered the rendering.