mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-12 13:44:28 +01:00
Comments for IChunkLoader specifying when to execute the callbacks
This commit is contained in:
parent
d43ba6a395
commit
09582cffc1
@ -14,7 +14,8 @@ public interface IChunkLoader {
|
||||
* @param instance the instance where the chunk belong
|
||||
* @param chunkX the chunk X
|
||||
* @param chunkZ the chunk Z
|
||||
* @param callback the callback executed when the chunk is done loading
|
||||
* @param callback the callback executed when the chunk is done loading,
|
||||
* never called if something went wrong
|
||||
* @return true if the chunk loaded successfully, false otherwise
|
||||
*/
|
||||
boolean loadChunk(Instance instance, int chunkX, int chunkZ, ChunkCallback callback);
|
||||
@ -23,7 +24,8 @@ public interface IChunkLoader {
|
||||
* Save a specific chunk with a callback for when it is done
|
||||
*
|
||||
* @param chunk the chunk to save
|
||||
* @param callback the callback executed when the chunk is done saving
|
||||
* @param callback the callback executed when the chunk is done saving,
|
||||
* should be called even if the saving failed (you can throw an exception)
|
||||
*/
|
||||
void saveChunk(Chunk chunk, Runnable callback);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user