Class HangarUpdater
java.lang.Object
ua.mcchickenstudio.opencreative.managers.updater.HangarUpdater
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns updates availability for OpenCreative+.@NotNull CompletableFuture<String> Sends web request and checks if new updates of OpenCreative+ are available.@NotNull StringgetName()Returns name of manager, that will be displayed by request in the logs.voidstart()Does tasks on start.
-
Constructor Details
-
HangarUpdater
public HangarUpdater()
-
-
Method Details
-
checkUpdates
Description copied from interface:UpdaterSends web request and checks if new updates of OpenCreative+ are available. It's called once on plugin enable and on command usage.- Specified by:
checkUpdatesin interfaceUpdater
-
canBeUpdated
public boolean canBeUpdated()Description copied from interface:UpdaterReturns updates availability for OpenCreative+. It gets saved value fromUpdater.checkUpdates().- Specified by:
canBeUpdatedin interfaceUpdater- Returns:
- true - if updates are available, false - if not.
-
start
public void start()Description copied from interface:StartableDoes tasks on start. -
getName
Description copied from interface:ManagerReturns name of manager, that will be displayed by request in the logs.
-