Class Plugins.LoadedPlugin

java.lang.Object
com.xpdustry.claj.server.plugin.Plugins.LoadedPlugin
Enclosing class:
Plugins

public static class Plugins.LoadedPlugin extends Object
Represents a plugin's state. May be a jar file, folder or zip.
  • Field Details

    • file

      public final arc.files.Fi file
      The location of this plugin's zip file/folder on the disk.
    • root

      public final arc.files.Fi root
      The root zip file; points to the contents of this plugin. In the case of folders, this is the same as the plugin's file.
    • main

      public final Plugin main
      The plugin's main class.
    • name

      public final String name
      Internal plugin name. Used for textures.
    • meta

      public final Plugins.PluginMeta meta
      This plugin's metadata.
    • dependencies

      public arc.struct.Seq<Plugins.LoadedPlugin> dependencies
      This plugin dependencies as already-loaded plugins.
    • softDependencies

      public arc.struct.Seq<Plugins.LoadedPlugin> softDependencies
      This plugin soft dependencies as already-loaded plugins.
    • missingDependencies

      public arc.struct.Seq<String> missingDependencies
      All missing required dependencies of this plugin as strings.
    • missingSoftDependencies

      public arc.struct.Seq<String> missingSoftDependencies
      All missing soft dependencies of this plugin as strings.
    • state

      public Plugins.PluginState state
      Current state of this plugin.
    • loader

      public ClassLoader loader
      Class loader for JAR plugins.
  • Constructor Details

  • Method Details

    • enabled

      public boolean enabled()
    • hasUnmetDependencies

      public boolean hasUnmetDependencies()
    • getMinMajor

      public int getMinMajor()
    • toString

      public String toString()
      Overrides:
      toString in class Object