Class ConfigurationHelper<S extends org.bukkit.configuration.ConfigurationSection>

java.lang.Object
net.orbyfied.j8.config.ConfigurationHelper<S>

public class ConfigurationHelper<S extends org.bukkit.configuration.ConfigurationSection> extends Object
Helper class for managing configurations and configurables. Includes a lot of boilerplate.
  • Field Details

    • configurables

      protected final List<Configurable<?>> configurables
      All configurables linearly.
    • configurablesByClass

      protected final Map<Class<?>,Configurable<?>> configurablesByClass
      All configurables mapped by class.
    • children

      protected final HashMap<String,ConfigurationHelper<org.bukkit.configuration.ConfigurationSection>> children
      The children of this helper.
    • section

      protected S extends org.bukkit.configuration.ConfigurationSection section
      The configuration section to load from.
    • beforeLoad

      protected Consumer<S extends org.bukkit.configuration.ConfigurationSection> beforeLoad
      Runs before loading.
    • afterSave

      protected Consumer<S extends org.bukkit.configuration.ConfigurationSection> afterSave
      Runs after saving.
  • Constructor Details

    • ConfigurationHelper

      public ConfigurationHelper()
  • Method Details