Interface Configurable

All Known Implementing Classes:
UltiToolsPlugin

public interface Configurable
Configurable data operation interface.
  • Method Details

    • getAllConfigs

      default List<AbstractConfigEntity> getAllConfigs()
      Returns:
      All configs
    • getConfig

      <T extends AbstractConfigEntity> T getConfig(Class<T> configType)
      Get config by config type.
      Type Parameters:
      T - Config type
      Parameters:
      configType - Config type
      Returns:
      Config
    • getConfig

      <T extends AbstractConfigEntity> T getConfig(String path, Class<T> configType)
      Get config by config path and config type.
      Type Parameters:
      T - Config type
      Parameters:
      path - Config path
      configType - Config type
      Returns:
      Config
    • saveConfig

      <T extends AbstractConfigEntity> void saveConfig(String path, Class<T> configType) throws IOException
      Save config by config type.
      Type Parameters:
      T - Config type
      Parameters:
      path - Config path
      configType - Config type
      Throws:
      IOException - IOException