mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-23 00:29:51 +00:00
WIP Caching Hints and Caching Sampler
This commit is contained in:
@@ -51,7 +51,13 @@ public class PlatformImpl extends AbstractPlatform {
|
||||
|
||||
private final TerraBukkitPlugin plugin;
|
||||
|
||||
private int generationThreads;
|
||||
|
||||
public PlatformImpl(TerraBukkitPlugin plugin) {
|
||||
generationThreads = getGenerationThreadsWithReflection("ca.spottedleaf.moonrise.common.util.MoonriseCommon", "WORKER_THREADS", "Moonrise");
|
||||
if (generationThreads == 0) {
|
||||
generationThreads = 1;
|
||||
}
|
||||
this.plugin = plugin;
|
||||
load();
|
||||
}
|
||||
@@ -108,6 +114,11 @@ public class PlatformImpl extends AbstractPlatform {
|
||||
return itemHandle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getGenerationThreads() {
|
||||
return generationThreads;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void register(TypeRegistry registry) {
|
||||
super.register(registry);
|
||||
|
||||
Reference in New Issue
Block a user