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 downloadingAnnoyingDependencys
-
-
Constructor Summary
Constructors Constructor Description AnnoyingDownload(@NotNull AnnoyingPlugin plugin, @NotNull java.util.List<AnnoyingDependency> dependencies)Constructor forAnnoyingDownloadwith multiple dependenciesAnnoyingDownload(@NotNull AnnoyingPlugin plugin, @NotNull AnnoyingDependency dependency)Constructor forAnnoyingDownloadwith a single dependency
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownloadPlugins(@Nullable java.lang.Runnable finishRunnable)Downloads the plugins@NotNull AnnoyingPlugingetAnnoyingPlugin()TheAnnoyingPlugininstance
-
-
-
Constructor Detail
-
AnnoyingDownload
public AnnoyingDownload(@NotNull @NotNull AnnoyingPlugin plugin, @NotNull @NotNull java.util.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 Detail
-
getAnnoyingPlugin
@NotNull public @NotNull AnnoyingPlugin getAnnoyingPlugin()
Description copied from interface:AnnoyableTheAnnoyingPlugininstance- Specified by:
getAnnoyingPluginin interfaceAnnoyable- Returns:
- the plugin instance
-
downloadPlugins
public void downloadPlugins(@Nullable @Nullable java.lang.Runnable finishRunnable)Downloads the plugins- Parameters:
finishRunnable- theRunnableto run when all plugins have been downloaded
-
-