Class BukkitImplLoader

java.lang.Object
com.sk89q.worldedit.bukkit.adapter.BukkitImplLoader

public class BukkitImplLoader extends Object
Loads Bukkit implementation adapters.
  • Constructor Details

    • BukkitImplLoader

      public BukkitImplLoader()
      Create a new instance.
  • Method Details

    • addFromJar

      public void addFromJar(File file) throws IOException
      Search the given JAR for candidate implementations.
      Parameters:
      file - the file
      Throws:
      IOException - thrown on I/O error
    • addFromPath

      public void addFromPath(ClassLoader classLoader) throws IOException
      Search for classes stored as separate files available via the given class loader.
      Parameters:
      classLoader - the class loader
      Throws:
      IOException - thrown on error
    • loadAdapter

      public BukkitImplAdapter loadAdapter() throws AdapterLoadException
      Iterate through the list of candidates and load an adapter.
      Returns:
      an adapter
      Throws:
      AdapterLoadException - thrown if no adapter could be found