Package net.md_5.bungee.api.plugin
Class PluginDescription
java.lang.Object
net.md_5.bungee.api.plugin.PluginDescription
POJO representing the plugin.yml file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanPlugin author.Plugin hard dependencies.Optional description.Optional: libraries to be excluded from download.getFile()File we were loaded from.Optional libraries.getMain()Plugin main class.getName()Friendly name of the plugin.Plugin soft dependencies.Plugin version.inthashCode()voidPlugin author.voidsetDepends(Set<String> depends) Plugin hard dependencies.voidsetDescription(String description) Optional description.voidsetExcludedTransitiveLibraries(List<String> excludedTransitiveLibraries) Optional: libraries to be excluded from download.voidFile we were loaded from.voidsetLibraries(List<String> libraries) Optional libraries.voidPlugin main class.voidFriendly name of the plugin.voidsetSoftDepends(Set<String> softDepends) Plugin soft dependencies.voidsetVersion(String version) Plugin version.toString()
-
Constructor Details
-
PluginDescription
public PluginDescription() -
PluginDescription
-
-
Method Details
-
getName
Friendly name of the plugin. -
getMain
Plugin main class. Needs to extendPlugin. -
getVersion
Plugin version. -
getAuthor
Plugin author. -
getDepends
Plugin hard dependencies. -
getSoftDepends
Plugin soft dependencies. -
getFile
File we were loaded from. -
getDescription
Optional description. -
getLibraries
Optional libraries. -
getExcludedTransitiveLibraries
Optional: libraries to be excluded from download. A clear example is having 2 versions of the same library. This can be achieved by having a library which packs a library the plugin already packs viagetLibraries()and suddenly, BungeeCord ends up with 2 different versions of the same library, when there can be 1! Or another hilarious case: having a download of a library, already packed in the BungeeCord jar!Syntax is the same as in
getLibraries() -
setName
Friendly name of the plugin. -
setMain
Plugin main class. Needs to extendPlugin. -
setVersion
Plugin version. -
setAuthor
Plugin author. -
setDepends
Plugin hard dependencies. -
setSoftDepends
Plugin soft dependencies. -
setFile
File we were loaded from. -
setDescription
Optional description. -
setLibraries
Optional libraries. -
setExcludedTransitiveLibraries
Optional: libraries to be excluded from download. A clear example is having 2 versions of the same library. This can be achieved by having a library which packs a library the plugin already packs viagetLibraries()and suddenly, BungeeCord ends up with 2 different versions of the same library, when there can be 1! Or another hilarious case: having a download of a library, already packed in the BungeeCord jar!Syntax is the same as in
getLibraries() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-