Package com.viaversion.viaversion.api
Class Via
java.lang.Object
com.viaversion.viaversion.api.Via
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ViaAPI
getAPI()
Returns the API associated with the current platform.static ViaVersionConfig
Returns the config associated with the current platform.static ViaManager
Returns the ViaManager with methods beyond the simple APIViaAPI
provides.static ViaPlatform
static void
init
(ViaManager viaManager) Register the ViaManager associated with the platform.static ViaServerProxyPlatform<?>
-
Constructor Details
-
Via
public Via()
-
-
Method Details
-
getAPI
Returns the API associated with the current platform.- Returns:
- API instance
- Throws:
IllegalArgumentException
- if the platform has not loaded yet
-
getManager
Returns the ViaManager with methods beyond the simple APIViaAPI
provides.- Returns:
- manager to interact with various Via parts
- Throws:
IllegalArgumentException
- if the platform has not loaded yet
-
getConfig
Returns the config associated with the current platform.- Returns:
- config instance
- Throws:
IllegalArgumentException
- if the platform has not loaded yet
-
getPlatform
-
proxyPlatform
-
init
Register the ViaManager associated with the platform.- Parameters:
viaManager
- The ViaManager- Throws:
IllegalArgumentException
- if the manager has already been set
-