Generic cleanup of warnings, whitespace and style.

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2011-12-25 16:02:30 +01:00
parent 98960fd73e
commit aaab1cba23
257 changed files with 1408 additions and 1152 deletions

View File

@@ -6,45 +6,49 @@ import org.bukkit.entity.Player;
* Represents a renderer for a map.
*/
public abstract class MapRenderer {
private boolean contextual;
/**
* Initialize the map renderer base to be non-contextual. See {@link #isContextual()}.
*/
public MapRenderer() {
this(false);
}
/**
* Initialize the map renderer base with the given contextual status.
*
* @param contextual Whether the renderer is contextual. See {@link #isContextual()}.
*/
public MapRenderer(boolean contextual) {
this.contextual = contextual;
}
/**
* Get whether the renderer is contextual, i.e. has different canvases for
* different players.
*
* @return True if contextual, false otherwise.
*/
final public boolean isContextual() {
return contextual;
}
/**
* Initialize this MapRenderer for the given map.
*
* @param map The MapView being initialized.
*/
public void initialize(MapView map) { }
/**
* Render to the given map.
*
* @param map The MapView being rendered to.
* @param canvas The canvas to use for rendering.
* @param player The player who triggered the rendering.
*/
abstract public void render(MapView map, MapCanvas canvas, Player player);
}