diff --git a/src/main/java/net/minestom/server/thread/SingleThreadProvider.java b/src/main/java/net/minestom/server/thread/SingleThreadProvider.java new file mode 100644 index 000000000..9f3f1b253 --- /dev/null +++ b/src/main/java/net/minestom/server/thread/SingleThreadProvider.java @@ -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; + } +}