public interface Game
Modifier and Type | Method and Description |
---|---|
CommandService |
getCommandDispatcher()
Get the command dispatcher used for registering and dispatching
registered commands.
|
EventManager |
getEventManager()
Gets the
EventManager . |
Platform |
getPlatform()
Returns the current platform, or implementation, this
Game is running on. |
PluginManager |
getPluginManager()
Gets the
PluginManager . |
GameRegistry |
getRegistry()
Gets the
GameRegistry . |
File |
getSavesDirectory()
Gets the saves directory where
World data currently resides. |
SchedulerService |
getScheduler()
Gets the scheduler used to schedule tasks.
|
Server |
getServer()
Gets the
Server . |
ServiceManager |
getServiceManager()
Get the game's instance of the service manager, which is the gateway
to various services provided by Sponge (command registration and so on).
|
TeleportHelper |
getTeleportHelper()
Gets the
TeleportHelper , used to find safe Location s. |
Platform getPlatform()
Game
is running on.PluginManager getPluginManager()
PluginManager
.EventManager getEventManager()
EventManager
.GameRegistry getRegistry()
GameRegistry
.ServiceManager getServiceManager()
Services registered by other plugins may be available too.
SchedulerService getScheduler()
CommandService getCommandDispatcher()
TeleportHelper getTeleportHelper()
TeleportHelper
, used to find safe Location
s.