public class TCPortalManager extends Object
PortalProvider
which will be used to find the rails
and directions to teleport the train at.Constructor and Description |
---|
TCPortalManager() |
Modifier and Type | Method and Description |
---|---|
static void |
addPortalSupport(String pluginName,
Class<? extends PortalProvider> providerClass)
Registers a portal provider and the name of the plugin that provides it.
|
static PortalDestination |
getPortalDestination(org.bukkit.World world,
String portalName)
Gets the portal destination information for a particular portal name
|
static boolean |
isAvailable(String pluginName)
Checks whether a particular portal teleportation providing plugin is enabled
|
static void |
updateProviders(String pluginName,
org.bukkit.plugin.Plugin plugin,
boolean enabled)
Internal use only: handles plugins enabling/disabling
|
public static void addPortalSupport(String pluginName, Class<? extends PortalProvider> providerClass)
pluginName
- of the plugin providing portal supportproviderClass
- for handling portal logicpublic static boolean isAvailable(String pluginName)
pluginName
- to checkpublic static void updateProviders(String pluginName, org.bukkit.plugin.Plugin plugin, boolean enabled)
pluginName
- plugin
- enabled
- public static PortalDestination getPortalDestination(org.bukkit.World world, String portalName)
world
- from which to look (portal search hint)portalName
- to findCopyright © 2019. All rights reserved.