public class KPMInfoManager extends Object
| Constructor and Description |
|---|
KPMInfoManager(KPMDaemon daemon) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable KPMInformationFile |
getInfo(@NotNull org.bukkit.plugin.Plugin plugin)
プラグインのKPM情報ファイルを取得します。
|
@Nullable KPMInformationFile |
getInfo(@NotNull String pluginName)
プラグインのKPM情報ファイルを取得します。
|
@Nullable KPMInformationFile |
getOrLoadInfo(@NotNull org.bukkit.plugin.Plugin plugin)
プラグインのKPM情報ファイルを取得するか読み込みます。
|
boolean |
hasInfo(@NotNull Path pluginFile)
プラグインが KPM情報ファイルを持っているかどうかを取得します。
|
boolean |
hasInfo(@NotNull org.bukkit.plugin.Plugin plugin)
プラグインが KPM情報ファイルを持っているかどうかを取得します。
|
@Nullable KPMInformationFile |
loadInfo(@NotNull Path path,
@NotNull org.bukkit.plugin.PluginDescriptionFile descriptionFile)
KPM情報ファイルを読み込み追加します。
|
void |
removeInfo(@NotNull org.bukkit.plugin.Plugin plugin)
プラグインのKPM情報ファイルを削除します。
|
public KPMInfoManager(KPMDaemon daemon)
@Nullable public @Nullable KPMInformationFile loadInfo(@NotNull @NotNull Path path, @NotNull @NotNull org.bukkit.plugin.PluginDescriptionFile descriptionFile) throws FileNotFoundException, InvalidInformationFileException
path - KPM情報ファイルのパスdescriptionFile - プラグインの説明ファイルInvalidInformationFileException - KPM情報ファイルが不正な場合FileNotFoundException - KPM情報ファイルが見つからない場合@Nullable public @Nullable KPMInformationFile getInfo(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
plugin - プラグイン@Nullable public @Nullable KPMInformationFile getInfo(@NotNull @NotNull String pluginName)
pluginName - プラグイン名@Nullable public @Nullable KPMInformationFile getOrLoadInfo(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
plugin - プラグインpublic boolean hasInfo(@NotNull
@NotNull org.bukkit.plugin.Plugin plugin)
plugin - プラグイン名public boolean hasInfo(@NotNull
@NotNull Path pluginFile)
pluginFile - プラグインのファイルpublic void removeInfo(@NotNull
@NotNull org.bukkit.plugin.Plugin plugin)
plugin - プラグインCopyright © 2023. All rights reserved.