Class Via


  • public final class Via
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Via()  
    • Constructor Detail

      • Via

        public Via()
    • Method Detail

      • getAPI

        public static ViaAPI getAPI()
        Returns the API associated with the current platform.
        Returns:
        API instance
        Throws:
        java.lang.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:
        java.lang.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:
        java.lang.IllegalArgumentException - if the platform has not loaded yet
      • getPlatform

        public static ViaPlatform getPlatform()
      • init

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