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(ClassPathLibrary classPathLibrary) Adds a new classpath library to this classpath builder.
-
Method Details
-
addLibrary
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 aClassPathLibraryduring resolution.The paper api provides pre implemented
ClassPathLibrarytypes 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
PluginProviderContext getContext()
-