public class KPMInfoManagerImpl extends Object implements KPMInfoManager
Constructor and Description |
---|
KPMInfoManagerImpl(KPMRegistry registry) |
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 KPMInfoManagerImpl(KPMRegistry registry)
@Nullable public @Nullable KPMInformationFile loadInfo(@NotNull @NotNull Path path, @NotNull @NotNull org.bukkit.plugin.PluginDescriptionFile descriptionFile) throws FileNotFoundException, InvalidInformationFileException
KPMInfoManager
loadInfo
in interface KPMInfoManager
path
- KPM情報ファイルのパスdescriptionFile
- プラグインの説明ファイルFileNotFoundException
- KPM情報ファイルが見つからない場合InvalidInformationFileException
- KPM情報ファイルが不正な場合@Nullable public @Nullable KPMInformationFile getInfo(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
KPMInfoManager
getInfo
in interface KPMInfoManager
plugin
- プラグイン@Nullable public @Nullable KPMInformationFile getInfo(@NotNull @NotNull String pluginName)
KPMInfoManager
getInfo
in interface KPMInfoManager
pluginName
- プラグイン名@Nullable public @Nullable KPMInformationFile getOrLoadInfo(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
KPMInfoManager
getOrLoadInfo
in interface KPMInfoManager
plugin
- プラグインpublic boolean hasInfo(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
KPMInfoManager
hasInfo
in interface KPMInfoManager
plugin
- プラグイン名public boolean hasInfo(@NotNull @NotNull Path pluginFile)
KPMInfoManager
hasInfo
in interface KPMInfoManager
pluginFile
- プラグインのファイルpublic void removeInfo(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
KPMInfoManager
removeInfo
in interface KPMInfoManager
plugin
- プラグインCopyright © 2023. All rights reserved.