Contents
Class JavaPluginInit
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginInit
com.hypixel.hytale.server.core.plugin.JavaPluginInit
Represents the initialization step of a plugin with an affiliated plugin JAR file
-
Constructor Summary
ConstructorsConstructorDescriptionJavaPluginInit(PluginManifest pluginManifest, Path dataDirectory, Path file, PluginClassLoader classLoader) Default Constructor for aJavaPluginInitinstance -
Method Summary
Methods inherited from class PluginInit
getDataDirectory, getPluginManifest
-
Constructor Details
-
JavaPluginInit
public JavaPluginInit(@Nonnull PluginManifest pluginManifest, @Nonnull Path dataDirectory, @Nullable Path file, @Nonnull PluginClassLoader classLoader) Default Constructor for aJavaPluginInitinstance- Parameters:
pluginManifest- The plugin manifest of the plugindataDirectory- The data directory of the pluginfile- The path to the plugin JAR file, ornullfor core pluginsclassLoader- The class loader used to load the plugin JAR file
-
-
Method Details
-
getFile
- Returns:
- the path to the plugin JAR file, or
nullfor core plugins
-
getClassLoader
- Returns:
- the class loader used to load the plugin JAR file
-
isInServerClassPath
public boolean isInServerClassPath()- Overrides:
isInServerClassPathin classPluginInit- Returns:
- true if this plugin is built-in (part of the server distribution), false if third-party
-