public interface Game
Modifier and Type | Method and Description |
---|---|
ChannelRegistrar |
getChannelRegistrar()
Gets the
ChannelRegistrar for creating network channels. |
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).
|
GameState |
getState()
Gets the current
GameState that this game is currently in. |
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.File getSavesDirectory()
World
data currently resides.GameState getState()
GameState
that this game is currently in.ChannelRegistrar getChannelRegistrar()
ChannelRegistrar
for creating network channels.