Package xyz.srnyx.annoyingapi.dependency
Class AnnoyingDownload
java.lang.Object
xyz.srnyx.javautilities.parents.Stringable
xyz.srnyx.annoyingapi.dependency.AnnoyingDownload
- All Implemented Interfaces:
Annoyable
public class AnnoyingDownload
extends xyz.srnyx.javautilities.parents.Stringable
implements Annoyable
Used for downloading
AnnoyingDependencies-
Constructor Summary
ConstructorsConstructorDescriptionAnnoyingDownload(@NotNull AnnoyingPlugin plugin, @NotNull List<AnnoyingDependency> dependencies) Constructor forAnnoyingDownloadwith multiple dependenciesAnnoyingDownload(@NotNull AnnoyingPlugin plugin, @NotNull AnnoyingDependency dependency) Constructor forAnnoyingDownloadwith a single dependency -
Method Summary
Modifier and TypeMethodDescriptionvoiddownloadPlugins(@Nullable Runnable finishRunnable) Downloads the plugins@NotNull AnnoyingPluginTheAnnoyingPlugininstanceMethods inherited from class xyz.srnyx.javautilities.parents.Stringable
toString, toString, toString, toString, toString
-
Constructor Details
-
AnnoyingDownload
public AnnoyingDownload(@NotNull @NotNull AnnoyingPlugin plugin, @NotNull @NotNull List<AnnoyingDependency> dependencies) Constructor forAnnoyingDownloadwith multiple dependencies- Parameters:
plugin- the plugin that is downloading the dependenciesdependencies- theAnnoyingDependencys to download
-
AnnoyingDownload
public AnnoyingDownload(@NotNull @NotNull AnnoyingPlugin plugin, @NotNull @NotNull AnnoyingDependency dependency) Constructor forAnnoyingDownloadwith a single dependency- Parameters:
plugin- the plugin that is downloading theAnnoyingDependencydependency- theAnnoyingDependencyto download
-
-
Method Details
-
getAnnoyingPlugin
Description copied from interface:AnnoyableTheAnnoyingPlugininstance- Specified by:
getAnnoyingPluginin interfaceAnnoyable- Returns:
- the plugin instance
-
downloadPlugins
Downloads the plugins- Parameters:
finishRunnable- theRunnableto run when all plugins have been downloaded
-