Class SubsystemConfig<S extends AbstractSubsystem<?,S>>

All Implemented Interfaces:
ObservableConfig, ConfigurationMethods<ConfigurationSection>, ConfigurationSection
Direct Known Subclasses:
FeatureConfig, ModuleConfig

public abstract class SubsystemConfig<S extends AbstractSubsystem<?,S>> extends KamiConfigExt
  • Constructor Details

    • SubsystemConfig

      public SubsystemConfig(@NotNull S subsystem, @NotNull @NotNull String resourcePath)
  • Method Details

    • getIS

      @NotNull public static @NotNull InputStream getIS(@NotNull @NotNull AbstractSubsystem<?,?> subsystem, @NotNull @NotNull String resourcePath)
    • addConfigDefaults

      public abstract void addConfigDefaults()
    • getSubsystem

      @NotNull public S getSubsystem()
    • getLocation

      @NotNull public @NotNull Location getLocation(String key) throws IllegalArgumentException
      Reads a Location from the current config file using the standard location format.
      Parameters:
      key - The root key of the location in the config file, e.g. "spawn" which has subkeys: "spawn.x", "spawn.y", etc.
      Throws:
      IllegalArgumentException