Interface DataImporter

All Known Implementing Classes:
AbstractDataImporter

@Contract public interface DataImporter
Interface for data migration importers.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Unhook plugin from this Data Importer.
    boolean
    Hooks plugin for importing its data.
    boolean
    enable(org.bukkit.plugin.Plugin plugin)
    Hooks plugin for importing its data.
    org.bukkit.plugin.Plugin
     
    Class<? extends org.bukkit.plugin.Plugin>
     
     
    boolean
    Imports the data from another plugin and disabled it upon success so Multiverse inventories can work without conflicts.
    boolean
    importData(boolean disableOnSuccess)
    Imports the data from another plugin and optionally disable it after successful import.
    boolean
    Checks if this Data Importer has been enable(Plugin) successfully.
  • Method Details

    • importData

      boolean importData(boolean disableOnSuccess)
      Imports the data from another plugin and optionally disable it after successful import.
      Parameters:
      disableOnSuccess - Whether to disable the importer plugin after a successful import.
      Returns:
      True if data import is successful, else false.
    • importData

      boolean importData()
      Imports the data from another plugin and disabled it upon success so Multiverse inventories can work without conflicts.
      Returns:
      True if data import is successful, else false.
    • enable

      boolean enable(org.bukkit.plugin.Plugin plugin)
      Hooks plugin for importing its data. Needs plugin class of getPluginClass().
      Parameters:
      plugin - The target plugin instance to hook.
      Returns:
      True if successfully enabled, else false.
    • enable

      boolean enable()
      Hooks plugin for importing its data. Needs plugin class of getPluginClass().
      Returns:
      True if successfully enabled, else false.
    • disable

      boolean disable()
      Unhook plugin from this Data Importer.
      Returns:
      True if successfully disabled, else false.
    • isEnabled

      boolean isEnabled()
      Checks if this Data Importer has been enable(Plugin) successfully.
      Returns:
      True if is enabled, else false.
    • getPlugin

      @Nullable org.bukkit.plugin.Plugin getPlugin()
      Returns:
      The plugin associated with this Data Importer, null if not enabled.
    • getPluginName

      @NotNull String getPluginName()
      Returns:
      The plugin name associated with this Data Importer.
    • getPluginClass

      @NotNull Class<? extends org.bukkit.plugin.Plugin> getPluginClass()
      Returns:
      The plugin class associated with this Data Importer.