mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 09:27:58 +01:00
Added SingleThreadProvider
This commit is contained in:
parent
dba368d16f
commit
86faa435f7
@ -0,0 +1,19 @@
|
|||||||
|
package net.minestom.server.thread;
|
||||||
|
|
||||||
|
import net.minestom.server.instance.Chunk;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Uses a single thread for all chunks.
|
||||||
|
*/
|
||||||
|
public class SingleThreadProvider extends ThreadProvider {
|
||||||
|
|
||||||
|
public SingleThreadProvider() {
|
||||||
|
super(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public long findThread(@NotNull Chunk chunk) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user