程序包 org.bukkit.map
类 MapRenderer
java.lang.Object
org.bukkit.map.MapRenderer
表示地图的渲染器。
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
MapRenderer
public MapRenderer()初始化地图渲染器基础为非上下文相关。参见isContextual()。原文: 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- 渲染器是否是上下文相关的。参见isContextual()。
-
-
方法详细资料
-
isContextual
public final boolean isContextual()获取渲染器是否是上下文相关的,即是否为不同玩家提供不同的画布。原文: Get whether the renderer is contextual, i.e. has different canvases for different players.
- 返回:
- 如果是上下文相关的则返回true,否则返回false。
-
initialize
为给定地图初始化此MapRenderer。原文: Initialize this MapRenderer for the given map.
- 参数:
map- 正在初始化的MapView。
-
render
public abstract void render(@NotNull @NotNull MapView map, @NotNull @NotNull MapCanvas canvas, @NotNull @NotNull Player player) 渲染到给定地图。原文: Render to the given map.
- 参数:
map- 正在渲染的MapView。canvas- 用于渲染的画布。player- 触发渲染的玩家。
-