32 lines
970 B
Java
32 lines
970 B
Java
package org.dynmap.hdmap;
|
|
|
|
import java.util.List;
|
|
|
|
import org.bukkit.Location;
|
|
import org.dynmap.DynmapChunk;
|
|
import org.dynmap.MapTile;
|
|
import org.dynmap.utils.MapChunkCache;
|
|
import org.json.simple.JSONObject;
|
|
|
|
public interface HDPerspective {
|
|
/* Get name of perspective */
|
|
String getName();
|
|
/* Get tiles invalidated by change at given location */
|
|
MapTile[] getTiles(Location loc);
|
|
/* Get tiles adjacent to given tile */
|
|
MapTile[] getAdjecentTiles(MapTile tile);
|
|
/* Get chunks needed for given tile */
|
|
List<DynmapChunk> getRequiredChunks(MapTile tile);
|
|
/* Render given tile */
|
|
boolean render(MapChunkCache cache, HDMapTile tile);
|
|
|
|
public boolean isBiomeDataNeeded();
|
|
public boolean isHightestBlockYDataNeeded();
|
|
public boolean isRawBiomeDataNeeded();
|
|
public boolean isBlockTypeDataNeeded();
|
|
|
|
double getScale();
|
|
int getModelScale();
|
|
|
|
public void addClientConfiguration(JSONObject mapObject);
|
|
}
|