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
KPMInfoManagerloadInfo in interface KPMInfoManagerpath - KPM情報ファイルのパスdescriptionFile - プラグインの説明ファイルFileNotFoundException - KPM情報ファイルが見つからない場合InvalidInformationFileException - KPM情報ファイルが不正な場合@Nullable public @Nullable KPMInformationFile getInfo(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
KPMInfoManagergetInfo in interface KPMInfoManagerplugin - プラグイン@Nullable public @Nullable KPMInformationFile getInfo(@NotNull @NotNull String pluginName)
KPMInfoManagergetInfo in interface KPMInfoManagerpluginName - プラグイン名@Nullable public @Nullable KPMInformationFile getOrLoadInfo(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
KPMInfoManagergetOrLoadInfo in interface KPMInfoManagerplugin - プラグインpublic boolean hasInfo(@NotNull
@NotNull org.bukkit.plugin.Plugin plugin)
KPMInfoManagerhasInfo in interface KPMInfoManagerplugin - プラグイン名public boolean hasInfo(@NotNull
@NotNull Path pluginFile)
KPMInfoManagerhasInfo in interface KPMInfoManagerpluginFile - プラグインのファイルpublic void removeInfo(@NotNull
@NotNull org.bukkit.plugin.Plugin plugin)
KPMInfoManagerremoveInfo in interface KPMInfoManagerplugin - プラグインCopyright © 2023. All rights reserved.