InsertCommand: command generation marker
@InsertCommand marks a Java method or constructor that generates commands. The annotation remains available at runtime for compiler tools and diagnostics.
java
package example.mni;
import top.mcfpp.annotations.InsertCommand;
import top.mcfpp.annotations.MNIFunction;
import top.mcfpp.model.function.Function;
public final class Messages {
@InsertCommand
@MNIFunction
public static void ready() {
Function.addCommand("say Ready");
}
}@MNIFunction and the MCFPP declaration define the native binding. Function.addCommand adds the command. @InsertCommand records the method's purpose.
See Generate commands from Java for a complete call. Use Command to compose fragments.