ChunkLocationChecker

Functions

Link copied to clipboard
public static boolean chunkAtLocationIsLoaded(Location location)
Link copied to clipboard
public static String chunkToString(Chunk chunk)
Converts a chunk to a string key in format "worldName:chunkX:chunkZ"
Link copied to clipboard
public static String coordinatesToChunkString(String worldName, int chunkX, int chunkZ)
Converts world name and chunk coordinates to a string key
Link copied to clipboard
public static int getChunkXFromChunkString(String chunkString)
Extracts chunk X coordinate from a chunk string
Link copied to clipboard
public static int getChunkZFromChunkString(String chunkString)
Extracts chunk Z coordinate from a chunk string
Link copied to clipboard
public static String getWorldNameFromChunkString(String chunkString)
Extracts world name from a chunk string
Link copied to clipboard
public static boolean isChunkStringLoaded(String chunkString)
Checks if a chunk string represents a loaded chunk
Link copied to clipboard
public static boolean locationIsInChunk(Location location, Chunk chunk)
Link copied to clipboard
public static String locationToChunkString(Location location)
Converts a location to a chunk string key in format "worldName:chunkX:chunkZ"