Package org.sgrewritten.stargate.api
Interface StargateAPI
- All Known Implementing Classes:
Stargate
public interface StargateAPI
An API to facilitate addons and integrations
- Author:
- Thorin
-
Method Summary
Modifier and TypeMethodDescriptionGets the bungee manager used for dealing with bungee related eventsGets the configuration API used to interact with the configuration fileGets the language manager used for translating stringsgetPermissionManager
(org.bukkit.entity.Entity entity) Gets permission manager for specified entityGets the registry used to register and unregister StargatesGets the storage API used to store and load Stargates
-
Method Details
-
getRegistry
RegistryAPI getRegistry()Gets the registry used to register and unregister Stargates- Returns:
The registry used to register and unregister Stargates
-
getStorageAPI
StorageAPI getStorageAPI()Gets the storage API used to store and load Stargates- Returns:
The storage API used to store and load stargates
-
getPermissionManager
Gets permission manager for specified entity- Parameters:
entity
-The entity to check permissions on
- Returns:
A permission manager
-
getConfigurationAPI
ConfigurationAPI getConfigurationAPI()Gets the configuration API used to interact with the configuration file- Returns:
The configuration API
-
getLanguageManager
LanguageManager getLanguageManager()Gets the language manager used for translating strings- Returns:
The language manager used for translating strings
-
getBungeeManager
BungeeManager getBungeeManager()Gets the bungee manager used for dealing with bungee related events- Returns:
The bungee manager used for dealing with bungee related events
-
getEconomyManager
StargateEconomyAPI getEconomyManager()- Returns:
The economy manager used by Stargate
-
getMaterialHandlerResolver
BlockHandlerResolver getMaterialHandlerResolver()- Returns:
The material handler resolver used by stargate addons
-
getNetworkManager
NetworkManager getNetworkManager()- Returns:
The network manager used to fetch networks from strings
-