File tree Expand file tree Collapse file tree
src/client/java/luka/modularmap/map Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919package luka .modularmap .map ;
2020
2121import luka .modularmap .config .ConfigManager ;
22- import luka .modularmap .world .ChunkProcessingManager ;
2322import net .minecraft .util .math .ChunkPos ;
2423import net .minecraft .world .chunk .Chunk ;
2524import org .jetbrains .annotations .NotNull ;
3029
3130public class MapController {
3231 private final java .util .Map <ChunkPos , MapChunk > _chunkMap = new ConcurrentHashMap <>();
33- private final ChunkProcessingManager _chunkProcessingManager ;
32+ private final MapProcessor _mapProcessor ;
3433
3534 public MapController () {
36- _chunkProcessingManager = new ChunkProcessingManager (ConfigManager .getConfig ().chunkProcessingThreads );
35+ _mapProcessor = new MapProcessor (ConfigManager .getConfig ().chunkProcessingThreads );
3736 }
3837
3938 public void addChunk (@ NotNull Chunk chunk ) {
40- _chunkProcessingManager .addChunkToQueue (chunk , this );
39+ _mapProcessor .addChunkToQueue (chunk , this );
4140 }
4241
4342 public MapChunk getChunk (@ NotNull ChunkPos pos ) {
@@ -69,8 +68,8 @@ public void setChunk(MapChunk chunk) {
6968 public Set <java .util .Map .Entry <ChunkPos , MapChunk >> getChunkEntries () {
7069 return _chunkMap .entrySet ();
7170 }
72-
71+
7372 public void end () {
74- _chunkProcessingManager .end ();
73+ _mapProcessor .end ();
7574 }
7675}
Original file line number Diff line number Diff line change 1616 * along with this program. If not, see <https://www.gnu.org/licenses/>.
1717 */
1818
19- package luka .modularmap .world ;
19+ package luka .modularmap .map ;
2020
2121
2222import luka .modularmap .ModularMapClient ;
23- import luka .modularmap .map .MapChunk ;
24- import luka .modularmap .map .MapController ;
2523import net .minecraft .world .chunk .Chunk ;
2624import org .jetbrains .annotations .NotNull ;
2725
2826import java .util .concurrent .ExecutorService ;
2927import java .util .concurrent .Executors ;
3028
31- public class ChunkProcessingManager {
29+ public class MapProcessor {
3230 private final ExecutorService _executor ;
3331
34- public ChunkProcessingManager (int threadCount ) {
32+ public MapProcessor (int threadCount ) {
3533 assert threadCount > 0 ;
3634
3735 _executor = Executors .newFixedThreadPool (threadCount );
You can’t perform that action at this time.
0 commit comments