Package de.marcely.bedwars.api
Interface AddonAPI
public interface AddonAPI
API for managing addons that were extended to this plugin
-
Method Summary
Modifier and TypeMethodDescriptionstatic AddonAPIget()Returns the global AddonAPI instance.getAll()Returns all addons that are currently registered.@Nullable BedwarsAddonReturns the registered addon given by itsname.getByPlugin(Plugin plugin) Returns all registered addons whoseBedwarsAddon.getPlugin()is equal to the one given as a parameter.Returns the folder in which all the addon data is located in.
-
Method Details
-
getAll
Collection<BedwarsAddon> getAll()Returns all addons that are currently registered.- Returns:
- All registered addons
-
getByPlugin
Returns all registered addons whoseBedwarsAddon.getPlugin()is equal to the one given as a parameter.- Parameters:
plugin- The plugin who created the addons- Returns:
- All the addons that were created by it
-
getByName
Returns the registered addon given by itsname. Can returnnullif there's none with that name.- Parameters:
name- The name of the addon- Returns:
- The addon that has the given name.
nullif there's none
-
getFolder
File getFolder()Returns the folder in which all the addon data is located in.By default it's /MBedwars/add-ons/
- Returns:
- The add-ons folder
-
get
Returns the global AddonAPI instance.- Returns:
- The global AddonAPI instance
-