Package com.viaversion.viaversion.api
Class Via
java.lang.Object
com.viaversion.viaversion.api.Via
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ViaAPIgetAPI()Returns the API associated with the current platform.static ViaVersionConfigReturns the config associated with the current platform.static ViaManagerReturns the ViaManager with methods beyond the simple APIViaAPIprovides.static ViaPlatformstatic voidinit(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 APIViaAPIprovides.- 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
-