addPlugin

fun addPlugin(plugin: Class<out Plugin?>): PortalBuilder

Add a plugin to be loaded with the Portal.

Example usage (kotlin):

builder = builder.addPlugin(MyPlugin::class.java)

Example usage (java):

builder = builder.addPlugin(MyPlugin.class);

Return

the instance of the PortalBuilder with the plugin added

Parameters

plugin

the plugin class to add to the portal