Added SingleThreadProvider

This commit is contained in:
TheMode 2021-04-21 18:33:51 +02:00
parent dba368d16f
commit 86faa435f7

View File

@ -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;
}
}