mc_get_method
Get the source code of any method in a Minecraft class, including surrounding context, to analyze implementation details.
Instructions
Get the source code for a specific method in a class, with surrounding context. Useful for understanding method implementation details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Optional: Minecraft version to use (e.g., "1.21.1"). If not provided, uses the active version set by mc_version. | |
| className | Yes | Fully qualified class name (e.g., "net.minecraft.client.MinecraftClient") | |
| methodName | Yes | Method name (e.g., "tick", "render", "onUse") |