Class SubsystemConfig<S extends AbstractSubsystem<?,S>>
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<S>
- All Implemented Interfaces:
ObservableConfig
,ConfigurationMethods<ConfigurationSection>
,ConfigurationSection
- Direct Known Subclasses:
FeatureConfig
,ModuleConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
static @NotNull InputStream
getIS
(@NotNull AbstractSubsystem<?, ?> subsystem, @NotNull String resourcePath) @NotNull Location
getLocation
(String key) Reads aLocation
from the current config file using the standard location format.Methods inherited from class com.kamikazejam.kamicommon.configuration.spigot.KamiConfigExt
applyThisPlaceholders, getString, getString, getStringList, getStringList
Methods inherited from class com.kamikazejam.kamicommon.configuration.spigot.KamiConfig
addDefault, contains, get, get, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getByte, getByte, getByteList, getByteList, getConfigurationSection, getConfigurationSequence, getCurrentPath, getDouble, getDouble, getFile, getFloat, getFloat, getInt, getInt, getIntegerList, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getShort, getShort, 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, unregisterConfigObservers
Methods inherited from class com.kamikazejam.kamicommon.configuration.standalone.AbstractConfig
isChanged, save, save, setChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kamikazejam.kamicommon.yaml.base.ConfigurationMethods
isChanged, setChanged
-
Constructor Details
-
SubsystemConfig
-
-
Method Details
-
getIS
@NotNull public static @NotNull InputStream getIS(@NotNull @NotNull AbstractSubsystem<?, ?> subsystem, @NotNull @NotNull String resourcePath) -
addConfigDefaults
public abstract void addConfigDefaults() -
getSubsystem
-
getLocation
Reads aLocation
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
-