AutoVersioner

Factory for creating appropriate packets or NMS objects according to the server version.

Functions

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

Creates an instance of the specified class.

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

Gets the class according to the version from the class name. Example: "net.minecraft.network.protocol.game.ClientboundChatPacket"