Clarification for Chunk#readChunk which do not guarantee the reading time

This commit is contained in:
themode 2020-10-10 09:05:38 +02:00
parent df37e2f81d
commit 98ac2d9717

View File

@ -197,8 +197,10 @@ public abstract class Chunk implements Viewable, DataContainer {
* Used if the chunk is loaded from file
*
* @param reader the data reader
* WARNING: the data will not necessary be read directly in the same thread,
* be sure that the data is only used for this reading.
* @param callback the callback to execute once the chunk is done reading
* WARNING: this need to be called to notify the instance
* WARNING: this need to be called to notify the instance.
* @see #getSerializedData() which is responsive for the serialized data given
*/
public abstract void readChunk(BinaryReader reader, ChunkCallback callback);