Class JavaPluginInit

java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginInit
com.hypixel.hytale.server.core.plugin.JavaPluginInit

public class JavaPluginInit extends PluginInit
Represents the initialization step of a plugin with an affiliated plugin JAR file
  • Constructor Details

    • JavaPluginInit

      public JavaPluginInit(@Nonnull PluginManifest pluginManifest, @Nonnull Path dataDirectory, @Nullable Path file, @Nonnull PluginClassLoader classLoader)
      Default Constructor for a JavaPluginInit instance
      Parameters:
      pluginManifest - The plugin manifest of the plugin
      dataDirectory - The data directory of the plugin
      file - The path to the plugin JAR file, or null for core plugins
      classLoader - The class loader used to load the plugin JAR file
  • Method Details

    • getFile

      @Nullable public Path getFile()
      Returns:
      the path to the plugin JAR file, or null for core plugins
    • getClassLoader

      @Nonnull public PluginClassLoader getClassLoader()
      Returns:
      the class loader used to load the plugin JAR file
    • isInServerClassPath

      public boolean isInServerClassPath()
      Overrides:
      isInServerClassPath in class PluginInit
      Returns:
      true if this plugin is built-in (part of the server distribution), false if third-party