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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Plugin 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.int
hashCode()
void
Plugin author.void
setDepends
(Set<String> depends) Plugin hard dependencies.void
setDescription
(String description) Optional description.void
setExcludedTransitiveLibraries
(List<String> excludedTransitiveLibraries) Optional: libraries to be excluded from download.void
File we were loaded from.void
setLibraries
(List<String> libraries) Optional libraries.void
Plugin main class.void
Friendly name of the plugin.void
setSoftDepends
(Set<String> softDepends) Plugin soft dependencies.void
setVersion
(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
-