Class ModuleConfig
java.lang.Object
com.kamikazejam.kamicommon.configuration.standalone.AbstractConfig<YamlConfiguration>
com.kamikazejam.kamicommon.configuration.spigot.KamiConfig
com.kamikazejam.kamicommon.configuration.spigot.KamiConfigExt
com.kamikazejam.kamicommon.subsystem.SubsystemConfig<Module>
com.kamikazejam.kamicommon.subsystem.module.ModuleConfig
- All Implemented Interfaces:
ObservableConfig<KamiConfig>, ConfigurationMethods<ConfigurationSection>, ConfigurationSection
The configuration of one
Module, defaulted from that module's resource in the plugin jar and
written under the plugin's data folder. It is created lazily by Module.createConfig(), so a
module reaches its own with AbstractSubsystem.getConfig() rather than constructing this directly.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModuleConfig(@NotNull Module module, @NotNull ConfigSource source, @NotNull String resourcePath) ModuleConfig(@NotNull Module module, @NotNull String resourcePath) -
Method Summary
Methods inherited from class SubsystemConfig
getIS, getLocation, getSubsystemMethods inherited from class KamiConfigExt
applyThisPlaceholders, getString, getString, getStringList, getStringListMethods inherited from class KamiConfig
addDefault, contains, get, get, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getByte, getByte, getByteList, getByteList, getConfigurationSection, getConfigurationSequence, getCurrentPath, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getIntegerList, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getShort, getShort, getSource, getYamlConfiguration, isBoolean, isByte, isConfigurationSection, isDouble, isEmpty, isFloat, isInt, isItemStack, isList, isLong, isNumber, isSet, isShort, isString, parseItemBuilder, put, putBoolean, putByte, putDouble, putFloat, putInt, putInteger, putLong, putShort, putString, registerConfigObserver, reload, reloadObservableConfig, set, setBoolean, setByte, setDouble, setFloat, setInt, setInteger, setItemStack, setLong, setShort, setString, unregisterConfigObserver, unregisterConfigObserversMethods inherited from class AbstractConfig
isChanged, save, save, setChangedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfigurationMethods
isChanged, setChanged
-
Constructor Details
-
ModuleConfig
-
ModuleConfig
public ModuleConfig(@NotNull @NotNull Module module, @NotNull @NotNull ConfigSource source, @NotNull @NotNull String resourcePath)
-
-
Method Details
-
getModule
-
isEnabledInConfig
@Internal public boolean isEnabledInConfig()
-