public final class TileRenderer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TileRenderer.LightOrigin |
Modifier and Type | Field and Description |
---|---|
static Layer |
ALL_TUNNELS_AS_LAYER |
static Layer |
FLUIDS_AS_LAYER |
static Layer |
TERRAIN_AS_LAYER |
Constructor and Description |
---|
TileRenderer(TileProvider tileProvider,
ColourScheme colourScheme,
CustomBiomeManager customBiomeManager,
int zoom,
boolean transparentVoid,
ColourRamp colourRamp) |
Modifier and Type | Method and Description |
---|---|
void |
addHiddenLayers(java.util.Collection<Layer> hiddenLayers) |
ColourScheme |
getColourScheme() |
int |
getContourSeparation() |
java.util.Set<Layer> |
getHiddenLayers() |
TileRenderer.LightOrigin |
getLightOrigin() |
Platform |
getPlatform() |
int |
getZoom() |
boolean |
isHideAllLayers() |
void |
renderTile(Tile tile,
java.awt.Image image,
int dx,
int dy)
Render the tile to an image, with an optional offset.
|
void |
setContourLines(boolean contourLines) |
void |
setContourSeparation(int contourSeparation) |
void |
setHiddenLayers(java.util.Set<Layer> hiddenLayers) |
void |
setHideAllLayers(boolean hideAllLayers) |
void |
setLightOrigin(TileRenderer.LightOrigin lightOrigin) |
public static final Layer TERRAIN_AS_LAYER
public static final Layer FLUIDS_AS_LAYER
public static final Layer ALL_TUNNELS_AS_LAYER
public TileRenderer(TileProvider tileProvider, ColourScheme colourScheme, CustomBiomeManager customBiomeManager, int zoom, boolean transparentVoid, ColourRamp colourRamp)
public Platform getPlatform()
public ColourScheme getColourScheme()
public void addHiddenLayers(java.util.Collection<Layer> hiddenLayers)
public void setHiddenLayers(java.util.Set<Layer> hiddenLayers)
public java.util.Set<Layer> getHiddenLayers()
public int getZoom()
public void setContourLines(boolean contourLines)
public int getContourSeparation()
public void setContourSeparation(int contourSeparation)
public boolean isHideAllLayers()
public void setHideAllLayers(boolean hideAllLayers)
public void renderTile(Tile tile, java.awt.Image image, int dx, int dy)
tile
- The tile to render.image
- The image to which to render the tile.dx
- The horizontal offset at which to render the tile.dy
- The vertical offset at which to render the tile.public TileRenderer.LightOrigin getLightOrigin()
public void setLightOrigin(TileRenderer.LightOrigin lightOrigin)