Class FeatureConfig

All Implemented Interfaces:
ObservableConfig<KamiConfig>, ConfigurationMethods<ConfigurationSection>, ConfigurationSection

public class FeatureConfig extends SubsystemConfig<Feature>
The configuration of one Feature, defaulted from that feature's resource in the plugin jar and written under the plugin's data folder. It is created lazily by Feature.createConfig(), so a feature reaches its own with AbstractSubsystem.getConfig() rather than constructing this directly.
See Also:
  • Constructor Details

    • FeatureConfig

      public FeatureConfig(@NotNull @NotNull Feature feature, @NotNull @NotNull String resourcePath)
    • FeatureConfig

      public FeatureConfig(@NotNull @NotNull Feature feature, @NotNull @NotNull ConfigSource source, @NotNull @NotNull String resourcePath)
  • Method Details

    • getFeature

      @NotNull public @NotNull Feature getFeature()