public interface KPMInfoManager
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情報ファイルを削除します。
|
@Nullable @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 @Nullable KPMInformationFile getInfo(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
plugin
- プラグイン@Nullable @Nullable KPMInformationFile getInfo(@NotNull @NotNull String pluginName)
pluginName
- プラグイン名@Nullable @Nullable KPMInformationFile getOrLoadInfo(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
plugin
- プラグインboolean hasInfo(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
plugin
- プラグイン名boolean hasInfo(@NotNull @NotNull Path pluginFile)
pluginFile
- プラグインのファイルvoid removeInfo(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
plugin
- プラグインCopyright © 2023. All rights reserved.