More cleanup and refactoring - get ready to split out core

This commit is contained in:
Mike Primm 2012-01-15 23:19:01 -06:00
parent 6aa150f6d3
commit 3ed0c25064
35 changed files with 352 additions and 216 deletions

View file

@ -1,10 +1,9 @@
package org.dynmap.utils;
import org.bukkit.World;
import org.bukkit.block.Biome;
import java.util.List;
import org.dynmap.DynmapChunk;
import org.dynmap.DynmapWorld;
import org.dynmap.common.BiomeMap;
public interface MapChunkCache {
public enum HiddenChunkStyle {
@ -18,7 +17,7 @@ public interface MapChunkCache {
/**
* Set chunks to load, and world to load from
*/
void setChunks(World w, List<DynmapChunk> chunks);
void setChunks(DynmapWorld w, List<DynmapChunk> chunks);
/**
* Set chunk data type needed
* @param blockdata - need block type and data for chunk
@ -69,7 +68,7 @@ public interface MapChunkCache {
/**
* Get biome at coordinates
*/
public Biome getBiome(int x, int z);
public BiomeMap getBiome(int x, int z);
/**
* Get raw temperature data (0.0-1.0)
*/
@ -105,7 +104,7 @@ public interface MapChunkCache {
/**
* Get world
*/
public World getWorld();
public DynmapWorld getWorld();
/**
* Get total chunks loaded
* @return