Class BukkitImplLoader
java.lang.Object
com.sk89q.worldedit.bukkit.adapter.BukkitImplLoader
Loads Bukkit implementation adapters.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFromJar
(File file) Search the given JAR for candidate implementations.void
addFromPath
(ClassLoader classLoader) Search for classes stored as separate files available via the given class loader.Iterate through the list of candidates and load an adapter.
-
Constructor Details
-
BukkitImplLoader
public BukkitImplLoader()Create a new instance.
-
-
Method Details
-
addFromJar
Search the given JAR for candidate implementations.- Parameters:
file
- the file- Throws:
IOException
- thrown on I/O error
-
addFromPath
Search for classes stored as separate files available via the given class loader.- Parameters:
classLoader
- the class loader- Throws:
IOException
- thrown on error
-
loadAdapter
Iterate through the list of candidates and load an adapter.- Returns:
- an adapter
- Throws:
AdapterLoadException
- thrown if no adapter could be found
-