Class PluginInfo
PluginInfo contains all info about the plugin such as its name, its author or a description of it. Most of them are optional.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSee isLoaded inPlugin
to get more info about its usage.getName()
int
When a new update is detected, MCreator will use this number to provide a link to the plugin page of the MCreator website.UpdatePluginDialog
uses this method to take an online JSON file containing info about new updates of the plugin.This method is used inside theUpdatePluginDialog
to check if the user has the latest update of the plugin.
-
Field Details
-
VERSION_NOT_SPECIFIED
- See Also:
-
-
Constructor Details
-
PluginInfo
public PluginInfo()
-
-
Method Details
-
getName
- Returns:
The displayed name of the plugin
-
getDescription
- Returns:
A description displayed in the plugins panel.
-
getAuthor
- Returns:
The author(s) of the plugin to be displayed in the plugins panel.
-
getVersion
This method is used inside theUpdatePluginDialog
to check if the user has the latest update of the plugin. SeePlugin
to read more about this.- Returns:
The plugin's version if provided
-
getDependencies
See isLoaded inPlugin
to get more info about its usage.- Returns:
A list of plugin's IDs needed to use the plugin
-
getCredits
- Returns:
A String with optional credits to give to someone.
-
getUpdateJSONURL
UpdatePluginDialog
uses this method to take an online JSON file containing info about new updates of the plugin. When it detects the version is not equal to the version inside the provided file, MCreator will notify the user.- Returns:
A link to an online JSON file
-
getPluginPageID
public int getPluginPageID()When a new update is detected, MCreator will use this number to provide a link to the plugin page of the MCreator website. This number comes after https://mcreator.net/plugin/xxxxx/... The link used will follow this format: https://mcreator.net/node/xxxxx
- Returns:
The URL number of the plugin page on the MCreator website.
-