Class Via

java.lang.Object
com.viaversion.viaversion.api.Via

public final class Via extends Object
  • Constructor Details

    • Via

      public Via()
  • Method Details

    • getAPI

      public static ViaAPI getAPI()
      Returns the API associated with the current platform.
      Returns:
      API instance
      Throws:
      IllegalArgumentException - if the platform has not loaded yet
    • getManager

      public static ViaManager getManager()
      Returns the ViaManager with methods beyond the simple API ViaAPI provides.
      Returns:
      manager to interact with various Via parts
      Throws:
      IllegalArgumentException - if the platform has not loaded yet
    • getConfig

      public static ViaVersionConfig getConfig()
      Returns the config associated with the current platform.
      Returns:
      config instance
      Throws:
      IllegalArgumentException - if the platform has not loaded yet
    • getPlatform

      public static ViaPlatform getPlatform()
    • proxyPlatform

      public static ViaServerProxyPlatform<?> proxyPlatform()
    • init

      public static void init(ViaManager viaManager)
      Register the ViaManager associated with the platform.
      Parameters:
      viaManager - The ViaManager
      Throws:
      IllegalArgumentException - if the manager has already been set