Contents
Class PluginManifest.CoreBuilder
java.lang.Object
com.hypixel.hytale.common.plugin.PluginManifest.CoreBuilder
- Enclosing class:
PluginManifest
A builder for plugin manifests of a core plugin
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static PluginManifest.CoreBuildercorePlugin(Class<?> pluginClass) Creates a new core builder instance for the provided plugin classSets the dependencies of this core builderdescription(String description) Sets the description of this core builderloadsBefore(Class<?>... plugins) Specifies plugins that this plugin should load before (soft ordering constraint).optDepends(Class<?>... dependencies) Sets the optional dependencies of this core builder
-
Method Details
-
corePlugin
Creates a new core builder instance for the provided plugin class- Parameters:
pluginClass- The class of the plugin that we are creating this core builder for- Returns:
- the newly created core builder instance
-
description
Sets the description of this core builder- Parameters:
description- The description to be set- Returns:
- the initial
PluginManifest.CoreBuilderinstance
-
depends
@Nonnull @SafeVarargs public final PluginManifest.CoreBuilder depends(@Nonnull Class<?>... dependencies) Sets the dependencies of this core builder- Parameters:
dependencies- The dependencies to be set- Returns:
- the initial
PluginManifest.CoreBuilderinstance
-
optDepends
@Nonnull @SafeVarargs public final PluginManifest.CoreBuilder optDepends(@Nonnull Class<?>... dependencies) Sets the optional dependencies of this core builder- Parameters:
dependencies- The optional dependencies to be set- Returns:
- the initial
PluginManifest.CoreBuilderinstance
-
loadsBefore
@Nonnull @SafeVarargs public final PluginManifest.CoreBuilder loadsBefore(@Nonnull Class<?>... plugins) Specifies plugins that this plugin should load before (soft ordering constraint).- Parameters:
plugins- The plugins to load before- Returns:
- the initial
PluginManifest.CoreBuilderinstance
-
build
- Returns:
- a new
PluginManifestinstance built from this core builder
-