Package | Description |
---|---|
io.github.bananapuncher714.cartographer.core.api |
Contains general utility classes, interfaces, and enums for Cartographer2.
|
io.github.bananapuncher714.cartographer.core.api.events.chunk |
Contains events dealing with chunk loading.
|
io.github.bananapuncher714.cartographer.core.dependency |
Manage any dependencies that might be required by Cartographer2 to function properly.
|
io.github.bananapuncher714.cartographer.core.file |
Contains
ChunkData for serialization. |
io.github.bananapuncher714.cartographer.core.map | |
io.github.bananapuncher714.cartographer.core.map.process |
Contains classes for processing chunks and converting them to data for the renderer.
|
io.github.bananapuncher714.cartographer.core.util |
Modifier and Type | Method and Description |
---|---|
ChunkLocation |
ChunkLocation.add(int x,
int z)
Add coordinates from current coordinates.
|
ChunkLocation |
ChunkLocation.setX(int x)
Set the x coordinate.
|
ChunkLocation |
ChunkLocation.setZ(int z)
Set the z coordinate.
|
ChunkLocation |
ChunkLocation.subtract(int x,
int z)
Subtract coordinates from current coordinates.
|
Constructor and Description |
---|
ChunkLocation(ChunkLocation location)
Copy a ChunkLocation.
|
Modifier and Type | Field and Description |
---|---|
protected ChunkLocation |
ChunkProcessedEvent.location |
protected ChunkLocation |
ChunkPreProcessEvent.location |
Modifier and Type | Method and Description |
---|---|
ChunkLocation |
ChunkProcessedEvent.getLocation()
Get the
ChunkLocation for this event. |
ChunkLocation |
ChunkPreProcessEvent.getLocation()
Get the location of the chunk data to be processed.
|
Constructor and Description |
---|
ChunkLoadedEvent(Minimap map,
ChunkLocation location,
ChunkData chunk)
|
ChunkPreProcessEvent(ChunkLocation location,
ChunkProcessor processor)
Construct a new ChunkPreProcessEvent at the given
ChunkLocation with the ChunkProcessor provided. |
ChunkProcessedEvent(Minimap map,
ChunkLocation location,
ChunkData chunk)
Construct a new ChunkProcessedEvent for the given
Minimap at the ChunkLocation provided. |
Modifier and Type | Method and Description |
---|---|
boolean |
DependencyManager.shouldChunkBeLoaded(ChunkLocation location) |
Modifier and Type | Method and Description |
---|---|
boolean |
BigChunkQueue.isLoading(ChunkLocation location) |
boolean |
BigChunkQueue.isSaving(ChunkLocation location) |
void |
BigChunk.set(ChunkLocation location,
ChunkData data)
Set the
ChunkData for the ChunkLocation . |
Constructor and Description |
---|
BigChunk(ChunkLocation location)
Construct a BigChunk from a
ChunkLocation . |
BigChunkLocation(ChunkLocation location)
Construct a BigChunkLocation from a
ChunkLocation . |
Modifier and Type | Method and Description |
---|---|
ChunkData |
Minimap.onChunkLoad(ChunkLocation location,
ChunkData data) |
ChunkData |
Minimap.onChunkProcessed(ChunkLocation location,
ChunkData data) |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<ChunkLocation,org.bukkit.ChunkSnapshot> |
MapDataCache.chunks |
protected java.util.Map<ChunkLocation,ChunkData> |
MapDataCache.data |
protected java.util.Set<ChunkLocation> |
MapDataCache.forcedLoading |
protected java.util.Set<ChunkLocation> |
MapDataCache.loaded |
protected java.util.Map<ChunkLocation,java.util.concurrent.Future<ChunkData>> |
MapDataCache.renderers |
Modifier and Type | Method and Description |
---|---|
ChunkLocation |
ChunkProcessor.getChunkLocation() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ChunkLocation> |
ChunkLoadListener.getChunks()
Get the locations that are queued for loading.
|
java.util.Map<ChunkLocation,ChunkData> |
MapDataCache.getData() |
Modifier and Type | Method and Description |
---|---|
boolean |
MapDataCache.absent(ChunkLocation location)
Check if it is stored anywhere
|
void |
MapDataCache.addToProcessQueue(ChunkLocation location)
Used by other processes to force load a chunk
|
boolean |
MapDataCache.containsDataAt(ChunkLocation location) |
org.bukkit.ChunkSnapshot |
MapDataCache.getChunkSnapshotAt(ChunkLocation location) |
ChunkData |
MapDataCache.getDataAt(ChunkLocation location) |
static MapDataCache.ChunkState |
MapDataCache.getStateOf(Minimap map,
ChunkLocation location) |
boolean |
MapDataCache.hasSnapshot(ChunkLocation location) |
static boolean |
ChunkLoadListener.isLoading(ChunkLocation location) |
boolean |
MapDataCache.isProcessing(ChunkLocation location) |
static boolean |
ChunkLoadListener.isQueued(ChunkLocation location)
Check if the given
ChunkLocation is loading. |
void |
MapDataCache.loadData(ChunkLocation location,
ChunkData data) |
ChunkData |
ChunkNotifier.onChunkLoad(ChunkLocation location,
ChunkData data) |
ChunkData |
ChunkNotifier.onChunkProcessed(ChunkLocation location,
ChunkData data) |
void |
MapDataCache.process(ChunkLocation location) |
static void |
ChunkLoadListener.queueChunk(ChunkLocation location)
Add the given location to the load queue.
|
void |
MapDataCache.registerSnapshot(ChunkLocation location) |
void |
MapDataCache.releaseSnapshot(ChunkLocation location) |
void |
MapDataCache.unregisterSnapshot(ChunkLocation location) |
boolean |
MapDataCache.withinVisiblePlayerRange(ChunkLocation location) |
Modifier and Type | Method and Description |
---|---|
static boolean |
BlockUtil.needsRender(ChunkLocation location) |