Skip to content
MyoWiki SSEC · 26.1

API Overview

The SSEC public surface centers on:

  • SSECInitializer
  • @SSCommand
  • @SSCExecute
  • @SSCArgument
  • @SSCAlias
  • @SSCPermission
  • @SSEvent
  • SSCArgumentAdapter

SuperSexyEventCommandLib loads every registered SSECInitializer, runs onInitializeSSEC(), collects scan packages, and then calls SSECScanner.initialize().

That split is important:

  • initializers provide configuration
  • scanners discover annotated classes
  • registrars translate those classes into real command and event registrations

Author root commands and subcommands with @SSCommand, then mark executable methods with @SSCExecute. See Command System.

Add redirect aliases with @SSCAlias and gate execution with @SSCPermission. See Permissions and Aliases.

Use built-in type adapters or register your own SSCArgumentAdapter during initialization. See Argument Types.

Register Fabric callback listeners by annotating methods with @SSEvent. See Event System.

public class MyModSSEC implements SSECInitializer {
@Override
public void onInitializeSSEC() {
// CommandRegistrar.registerAdapter(MyType.class, new MyTypeAdapter());
}
@Override
public String[] getPackagesToScan() {
return new String[] { "com.example.mymod.command", "com.example.mymod.event" };
}
}