Package io.papermc.paper.plugin.loader
Interface PluginClasspathBuilder
A mutable builder that may be used to collect and register all
ClassPathLibrary
instances a
PluginLoader
aims to provide to its plugin at runtime.-
Method Summary
Modifier and TypeMethodDescriptionaddLibrary
(@NotNull ClassPathLibrary classPathLibrary) Adds a new classpath library to this classpath builder.
-
Method Details
-
addLibrary
@NotNull @Contract("_ -> this") @NotNull PluginClasspathBuilder addLibrary(@NotNull @NotNull ClassPathLibrary classPathLibrary) Adds a new classpath library to this classpath builder.As a builder, this method does not invoke
ClassPathLibrary.register(LibraryStore)
and may hence be run without invoking potential IO performed by aClassPathLibrary
during resolution.The paper api provides pre implemented
ClassPathLibrary
types that allow easy inclusion of existing libraries on disk or on remote maven repositories.- Parameters:
classPathLibrary
- the library instance to add to this builder- Returns:
- self
- See Also:
-
getContext
-