public interface ViaManager
Modifier and Type | Method and Description |
---|---|
void |
addEnableListener(java.lang.Runnable runnable)
Adds a runnable to be executed when ViaVersion has finished its init before the full server load.
|
DebugHandler |
debugHandler()
Returns the debug handler.
|
ViaVersionCommand |
getCommandHandler()
Returns the command handler for managing ViaVersion subcommands.
|
ConnectionManager |
getConnectionManager()
Returns the userconnection manager for handling clients connected to the server.
|
ViaInjector |
getInjector()
Returns the injector for injecting netty handlers and initially getting the server protocol version.
|
ViaPlatformLoader |
getLoader()
Returns the platform loader responsible for registering listeners, providers and such.
|
ViaPlatform<?> |
getPlatform()
Returns platform for handling platform specific configuration, tasks, and plugin data.
|
ProtocolManager |
getProtocolManager()
Returns the protocol manager for registering/getting protocols and their mapping data loading.
|
ViaProviders |
getProviders()
Returns the manager for Via providers.
|
Scheduler |
getScheduler()
Returns the async task scheduler.
|
java.util.Set<java.lang.String> |
getSubPlatforms()
Returns a mutable set of self-added subplatform version strings.
|
default boolean |
isDebug()
If debug is enabled, packets and other otherwise suppressed warnings will be logged.
|
boolean |
isInitialized()
Returns whether the manager has been initialized (and protocols have been loaded).
|
default void |
setDebug(boolean debug)
Deprecated.
|
ProtocolManager getProtocolManager()
ViaPlatform<?> getPlatform()
ConnectionManager getConnectionManager()
ViaProviders getProviders()
ViaInjector getInjector()
ViaVersionCommand getCommandHandler()
ViaPlatformLoader getLoader()
Scheduler getScheduler()
default boolean isDebug()
@Deprecated default void setDebug(boolean debug)
debug
- whether debug should be enabledDebugHandler debugHandler()
java.util.Set<java.lang.String> getSubPlatforms()
void addEnableListener(java.lang.Runnable runnable)
runnable
- runnable to be executedboolean isInitialized()