mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-16 23:55:14 +01:00
Clarification for Chunk#readChunk which do not guarantee the reading time
This commit is contained in:
parent
df37e2f81d
commit
98ac2d9717
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user