Package org.mvplugins.multiverse.portals
Class MultiversePortalsApi
java.lang.Object
org.mvplugins.multiverse.portals.MultiversePortalsApi
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull MultiversePortalsApiget()Gets the MultiversePortalsApi.@NotNull PortalFillerGets the instance of the PortalFiller.@NotNull PortalManagerGets the instance of the PortalManager.@NotNull PortalsConfigGets the instance of the PortalsConfig.@NotNull org.mvplugins.multiverse.core.inject.PluginServiceLocatorGets the instance of Multiverse-Portals's PluginServiceLocator.
-
Method Details
-
get
Gets the MultiversePortalsApi. This will throw an exception if the Multiverse-Portals has not been initialized.- Returns:
- The MultiversePortalsApi
-
getPortalFiller
Gets the instance of the PortalFiller.- Returns:
- The PortalFiller instance
-
getPortalManager
Gets the instance of the PortalManager.- Returns:
- The PortalManager instance
-
getPortalsConfig
Gets the instance of the PortalsConfig.- Returns:
- The PortalsConfig instance
- Since:
- 5.1
-
getServiceLocator
@NotNull public @NotNull org.mvplugins.multiverse.core.inject.PluginServiceLocator getServiceLocator()Gets the instance of Multiverse-Portals's PluginServiceLocator.
You can use this to hook into the hk2 dependency injection system used by Multiverse-Portals.- Returns:
- The Multiverse-Portals's PluginServiceLocator
-