mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 10:43:14 +00:00
Rewrite iris settings
This commit is contained in:
parent
6c791c034b
commit
dfaf361bf2
@ -11,33 +11,56 @@ import java.io.IOException;
|
|||||||
public class IrisSettings
|
public class IrisSettings
|
||||||
{
|
{
|
||||||
public static transient IrisSettings settings;
|
public static transient IrisSettings settings;
|
||||||
|
private IrisSettingsCache cache = new IrisSettingsCache();
|
||||||
|
private IrisSettingsConcurrency concurrency = new IrisSettingsConcurrency();
|
||||||
|
private IrisSettingsParallax parallax = new IrisSettingsParallax();
|
||||||
|
private IrisSettingsGeneral general = new IrisSettingsGeneral();
|
||||||
|
private IrisSettingsGUI gui = new IrisSettingsGUI();
|
||||||
|
private IrisSettingsGenerator generator = new IrisSettingsGenerator();
|
||||||
|
private IrisSettingsStudio studio = new IrisSettingsStudio();
|
||||||
|
|
||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public int configurationVersion = 2;
|
public int configurationVersion = 3;
|
||||||
|
|
||||||
|
public boolean isStudio() {
|
||||||
|
return getStudio().isStudio();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isUseServerLaunchedGuis() {
|
||||||
|
return getGui().isUseServerLaunchedGuis();
|
||||||
|
}
|
||||||
|
|
||||||
|
public long getParallaxRegionEvictionMS() {
|
||||||
|
return getParallax().getParallaxRegionEvictionMS();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class IrisSettingsCache
|
||||||
|
{
|
||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public int streamingCacheSize = 8192;
|
public int streamingCacheSize = 8192;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class IrisSettingsConcurrency
|
||||||
|
{
|
||||||
|
@DontObfuscate
|
||||||
|
public int threadCount = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class IrisSettingsParallax
|
||||||
|
{
|
||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public int parallaxRegionEvictionMS = 15000;
|
public int parallaxRegionEvictionMS = 15000;
|
||||||
|
|
||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public int parallaxChunkEvictionMS = 5000;
|
public int parallaxChunkEvictionMS = 5000;
|
||||||
|
}
|
||||||
|
|
||||||
@DontObfuscate
|
@Data
|
||||||
public boolean forceSingleThreadedPerChunk = false;
|
public static class IrisSettingsGeneral
|
||||||
|
{
|
||||||
@DontObfuscate
|
|
||||||
public int forceThreadCount = -1;
|
|
||||||
|
|
||||||
@DontObfuscate
|
|
||||||
public String defaultWorldType = "overworld";
|
|
||||||
|
|
||||||
@DontObfuscate
|
|
||||||
public int maxAsyncChunkPregenThreads = 128;
|
|
||||||
|
|
||||||
@DontObfuscate
|
|
||||||
public boolean maximumPregenGuiFPS = false;
|
|
||||||
|
|
||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public boolean commandSounds = true;
|
public boolean commandSounds = true;
|
||||||
@ -48,23 +71,40 @@ public class IrisSettings
|
|||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public boolean ignoreWorldEdit = false;
|
public boolean ignoreWorldEdit = false;
|
||||||
|
|
||||||
@DontObfuscate
|
|
||||||
public boolean useGleamPregenerator = false;
|
|
||||||
|
|
||||||
@DontObfuscate
|
|
||||||
public boolean useExperimentalGleamMCADirectWriteMode = false;
|
|
||||||
|
|
||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public boolean disableNMS = false;
|
public boolean disableNMS = false;
|
||||||
|
|
||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public boolean systemEffects = true;
|
public boolean pluginMetrics = true;
|
||||||
|
|
||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public boolean saveAllDuringPregen = true;
|
public boolean splashLogoStartup = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class IrisSettingsGUI
|
||||||
|
{
|
||||||
|
@DontObfuscate
|
||||||
|
public boolean useServerLaunchedGuis = true;
|
||||||
|
|
||||||
|
@DontObfuscate
|
||||||
|
public boolean maximumPregenGuiFPS = false;
|
||||||
|
|
||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public boolean localPregenGui = true;
|
public boolean localPregenGui = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class IrisSettingsGenerator
|
||||||
|
{
|
||||||
|
@DontObfuscate
|
||||||
|
public String defaultWorldType = "overworld";
|
||||||
|
|
||||||
|
@DontObfuscate
|
||||||
|
public boolean mcaPregenerator = false;
|
||||||
|
|
||||||
|
@DontObfuscate
|
||||||
|
public boolean systemEffects = true;
|
||||||
|
|
||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public boolean systemEntitySpawnOverrides = true;
|
public boolean systemEntitySpawnOverrides = true;
|
||||||
@ -75,23 +115,18 @@ public class IrisSettings
|
|||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public int maxBiomeChildDepth = 5;
|
public int maxBiomeChildDepth = 5;
|
||||||
|
|
||||||
@DontObfuscate
|
}
|
||||||
public boolean sharedCaching = true;
|
|
||||||
|
@Data
|
||||||
|
public static class IrisSettingsStudio
|
||||||
|
{
|
||||||
|
|
||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public boolean studio = true;
|
public boolean studio = true;
|
||||||
|
|
||||||
@DontObfuscate
|
|
||||||
public boolean useServerLaunchedGuis = true;
|
|
||||||
|
|
||||||
@DontObfuscate
|
@DontObfuscate
|
||||||
public boolean openVSCode = true;
|
public boolean openVSCode = true;
|
||||||
|
}
|
||||||
@DontObfuscate
|
|
||||||
public boolean pluginMetrics = true;
|
|
||||||
|
|
||||||
@DontObfuscate
|
|
||||||
public boolean splashLogoStartup = true;
|
|
||||||
|
|
||||||
public static IrisSettings get()
|
public static IrisSettings get()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user