MNI API reference
This section describes Java extension entries and command objects. Start a complete project with the MNI introduction.
| API | Purpose |
|---|---|
| MNIFunction | Ordinary native functions and results |
| MNIMacro | Macros that generate typed code |
| MNIAccessor | Native property reads |
| MNIMutator | Native property writes |
| MNIMember | Member metadata marker |
| InsertCommand | Command generation marker |
| Command | Minecraft command fragments |
Ordinary MNI functions receive Var subclasses and return results through ValueWrapper. Another form receives one NativeCallContext. The standard library uses it for receivers, arguments, and backend operations.
Macros describe generated code with MacroContext, Value<T>, Expr<T>, and Block. Macros and ordinary native functions serve different extension needs.