public interface ICachedWorld
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<net.minecraft.util.math.BlockPos> |
getLocationsOf(java.lang.String block,
int maximum,
int centerX,
int centerZ,
int maxRegionDistanceSq)
Scans the cached chunks for location of the specified special block.
|
ICachedRegion |
getRegion(int regionX,
int regionZ)
Returns the region at the specified region coordinates
|
boolean |
isCached(int blockX,
int blockZ)
Returns whether or not the block at the specified X and Z coordinates
is cached in this world.
|
void |
queueForPacking(net.minecraft.world.chunk.Chunk chunk)
Queues the specified chunk for packing.
|
void |
reloadAllFromDisk()
Reloads all of the cached regions in this world from disk.
|
void |
save()
Saves all of the cached regions in this world to disk.
|
ICachedRegion getRegion(int regionX, int regionZ)
regionX - The region X coordinateregionZ - The region Z coordinatevoid queueForPacking(net.minecraft.world.chunk.Chunk chunk)
chunk - The chunk to pack and storeboolean isCached(int blockX, int blockZ)
blockX - The block X coordinateblockZ - The block Z coordinatejava.util.ArrayList<net.minecraft.util.math.BlockPos> getLocationsOf(java.lang.String block, int maximum, int centerX, int centerZ, int maxRegionDistanceSq)
block - The special block to search formaximum - The maximum number of position results to receivecenterX - The x block coordinate center of the searchcenterZ - The z block coordinate center of the searchmaxRegionDistanceSq - The maximum region distance, squaredvoid reloadAllFromDisk()
void save()