Class JsonConfigurationHandle

java.lang.Object
org.mvplugins.multiverse.core.config.handle.BaseConfigurationHandle<com.dumptruckman.bukkit.configuration.json.JsonConfiguration>
org.mvplugins.multiverse.core.config.handle.FileConfigurationHandle<com.dumptruckman.bukkit.configuration.json.JsonConfiguration>
org.mvplugins.multiverse.inventories.config.handle.JsonConfigurationHandle

public class JsonConfigurationHandle extends org.mvplugins.multiverse.core.config.handle.FileConfigurationHandle<com.dumptruckman.bukkit.configuration.json.JsonConfiguration>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
  • Field Summary

    Fields inherited from class org.mvplugins.multiverse.core.config.handle.FileConfigurationHandle

    configFile, configPath

    Fields inherited from class org.mvplugins.multiverse.core.config.handle.BaseConfigurationHandle

    config, logger, migrator, nodes, nodeValueMap
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    JsonConfigurationHandle(@NotNull Path configPath, @Nullable Logger logger, @NotNull org.mvplugins.multiverse.core.config.node.NodeGroup nodes, @Nullable org.mvplugins.multiverse.core.config.migration.ConfigMigrator migrator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    builder(@NotNull Path configPath, @NotNull org.mvplugins.multiverse.core.config.node.NodeGroup nodes)
    Creates a new builder for JsonConfigurationHandle.
    protected void
     
    org.mvplugins.multiverse.external.vavr.control.Try<Void>

    Methods inherited from class org.mvplugins.multiverse.core.config.handle.FileConfigurationHandle

    createConfigFile, load

    Methods inherited from class org.mvplugins.multiverse.core.config.handle.BaseConfigurationHandle

    add, deserializeNodeFromConfig, get, getConfig, isLoaded, migrateConfig, remove, reset, serializeNodeToConfig, set, setUpNodes

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JsonConfigurationHandle

      protected JsonConfigurationHandle(@NotNull @NotNull Path configPath, @Nullable @Nullable Logger logger, @NotNull @NotNull org.mvplugins.multiverse.core.config.node.NodeGroup nodes, @Nullable @Nullable org.mvplugins.multiverse.core.config.migration.ConfigMigrator migrator)
  • Method Details

    • builder

      @NotNull public static @NotNull JsonConfigurationHandle.Builder<? extends JsonConfigurationHandle.Builder> builder(@NotNull @NotNull Path configPath, @NotNull @NotNull org.mvplugins.multiverse.core.config.node.NodeGroup nodes)
      Creates a new builder for JsonConfigurationHandle.
      Parameters:
      configPath - The path to the config file.
      nodes - The nodes.
      Returns:
      The builder.
    • loadConfigObject

      protected void loadConfigObject() throws IOException, org.bukkit.configuration.InvalidConfigurationException
      Specified by:
      loadConfigObject in class org.mvplugins.multiverse.core.config.handle.FileConfigurationHandle<com.dumptruckman.bukkit.configuration.json.JsonConfiguration>
      Throws:
      IOException
      org.bukkit.configuration.InvalidConfigurationException
    • save

      public org.mvplugins.multiverse.external.vavr.control.Try<Void> save()
      Overrides:
      save in class org.mvplugins.multiverse.core.config.handle.BaseConfigurationHandle<com.dumptruckman.bukkit.configuration.json.JsonConfiguration>