public final class Via
extends java.lang.Object
Constructor and Description |
---|
Via() |
Modifier and Type | Method and Description |
---|---|
static ViaAPI |
getAPI()
Returns the API associated with the current platform.
|
static ViaVersionConfig |
getConfig()
Returns the config associated with the current platform.
|
static ViaManager |
getManager()
Returns the ViaManager with methods beyond the simple API
ViaAPI provides. |
static ViaPlatform |
getPlatform() |
static void |
init(ViaManager viaManager)
Register the ViaManager associated with the platform.
|
static ViaServerProxyPlatform<?> |
proxyPlatform() |
public static ViaAPI getAPI()
java.lang.IllegalArgumentException
- if the platform has not loaded yetpublic static ViaManager getManager()
ViaAPI
provides.java.lang.IllegalArgumentException
- if the platform has not loaded yetpublic static ViaVersionConfig getConfig()
java.lang.IllegalArgumentException
- if the platform has not loaded yetpublic static ViaPlatform getPlatform()
public static ViaServerProxyPlatform<?> proxyPlatform()
public static void init(ViaManager viaManager)
viaManager
- The ViaManagerjava.lang.IllegalArgumentException
- if the manager has already been set