Skip to content

MNI API reference ​

This section describes Java extension entries and command objects. Start a complete project with the MNI introduction.

APIPurpose
MNIFunctionOrdinary native functions and results
MNIMacroMacros that generate typed code
MNIAccessorNative property reads
MNIMutatorNative property writes
MNIMemberMember metadata marker
InsertCommandCommand generation marker
CommandMinecraft 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.