AutoVersioner

Utility object for dynamically loading NMS classes and creating instances at runtime.

Used to abstract version-specific class loading without direct compile-time dependencies.

Functions

Link copied to clipboard
fun <T> create(className: String, vararg args: Any?): T

Creates and returns an instance of the class identified by className, using the constructor that matches the number of provided args.

Link copied to clipboard
fun getNMSClass(className: String): Class<*>

Loads and returns the Class for the given fully-qualified className.