Package net.orbyfied.j8.config
Class AbstractConfiguration
java.lang.Object
net.orbyfied.j8.config.AbstractConfiguration
- All Implemented Interfaces:
Configuration
Abstract implementation of
Configuration- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Configurable<?>The configurable that this configuration is for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConfigurable<?>Get the holder of this configuration.final voidload(org.bukkit.configuration.ConfigurationSection config) Loads the data from the configuration section into this configuration.final voidsave(org.bukkit.configuration.ConfigurationSection config) Saves the data from this configuration into the provided configuration section.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.orbyfied.j8.config.Configuration
whenLoaded, whenSaved
-
Field Details
-
configurable
The configurable that this configuration is for. Can be null.
-
-
Constructor Details
-
AbstractConfiguration
Constructor.
-
-
Method Details
-
getConfigurable
Description copied from interface:ConfigurationGet the holder of this configuration. Aka. the configurable.- Specified by:
getConfigurablein interfaceConfiguration- Returns:
- The configurable.
- See Also:
-
save
public final void save(org.bukkit.configuration.ConfigurationSection config) Description copied from interface:ConfigurationSaves the data from this configuration into the provided configuration section.- Specified by:
savein interfaceConfiguration- Parameters:
config- The configuration section.
-
load
public final void load(org.bukkit.configuration.ConfigurationSection config) Description copied from interface:ConfigurationLoads the data from the configuration section into this configuration.- Specified by:
loadin interfaceConfiguration- Parameters:
config- The configuration section.
-