Class BundleConfig

java.lang.Object
de.luckymcdev.foundryengine.common.bundle.config.BundleConfig

public class BundleConfig extends Object
Holds the configuration for a single Bundle. Values are defined programmatically via BundleConfigSpec and persisted to FoundryEngine/config/<bundleId>.toml.
  • Constructor Details

    • BundleConfig

      public BundleConfig(String bundleId, Path configDirectory)
  • Method Details

    • load

      public void load()
      Loads values from the TOML file on disk. Missing keys are filled with defaults. Should be called once after all values have been registered.
    • save

      public void save()
      Saves all current values back to the TOML file.
    • getBundleId

      public String getBundleId()
    • getConfigPath

      public Path getConfigPath()
    • isLoaded

      public boolean isLoaded()