Small Library providing a client-command API, ported from Forge.
repositories {
maven {
url "https://moehreag.duckdns.org/maven/releases"
}
}
dependencies {
modImplementation include('io.github.axolotlclient:LegacyClientCommands:1.0.0')
}
public class YourMod implements ClientModInitializer {
public void onIntitialize() {
ClientCommandRegistry.getInstance().registerCommand(new ClientCommand(){
...
});
}
}
There's also a helper method available which accepts Lambdas as parameters. It is also possible to register Listeners which will be called every time a command is executed.