Package dev.jorel.commandapi
Interface CommandAPIVersionHandler
public interface CommandAPIVersionHandler
This file handles the NMS version to be loaded. The CommandAPIVersionHandler
file within the commandapi-core module is NOT used at run time. Instead,
the commandapi-vh module is loaded instead, which doesn't use reflection to
load NMS instances.
-
Method Summary
-
Method Details
-
getNMS
Returns an instance of the version's implementation of NMS.- Type Parameters:
CommandSourceStack- the command source type- Parameters:
version- the string of the Minecraft version (e.g. 1.16.5 or 1.17)- Returns:
- an instance of NMS which can run on the specified Minecraft version
-