public class SimpleChunkProcessor extends java.lang.Object implements ChunkDataProvider
| Modifier and Type | Field and Description |
|---|---|
protected MapDataCache |
cache |
protected MinimapPalette |
palette |
| Constructor and Description |
|---|
SimpleChunkProcessor(MapDataCache cache,
MinimapPalette palette)
Construct a SimpleChunkProcessor with a cache and palette.
|
| Modifier and Type | Method and Description |
|---|---|
ChunkData |
process(org.bukkit.ChunkSnapshot snapshot)
May be ran asynchronously.
|
int |
process(org.bukkit.Location location,
MinimapPalette palette)
Get the color at a particular location, should be called from the main thread.
|
protected MapDataCache cache
protected MinimapPalette palette
public SimpleChunkProcessor(MapDataCache cache, MinimapPalette palette)
cache - Cache containing other ChunkSnapshots that can be used. Cannot be null.palette - A palette to get the colors for the blocks. Cannot be null.public ChunkData process(org.bukkit.ChunkSnapshot snapshot)
ChunkDataProviderprocess in interface ChunkDataProvidersnapshot - A non-null snapshot to process.ChunkData that can be used.public int process(org.bukkit.Location location,
MinimapPalette palette)
ChunkDataProviderprocess in interface ChunkDataProviderlocation - The location to render, cannot be null.palette - The palette to use. Cannot be null.