mc_find_hierarchy
Find subclasses or implementors of a class or interface to analyze inheritance hierarchies in Minecraft mod development.
Instructions
Find classes that extend (subclasses) or implement (implementors) a given class or interface. Useful for understanding class inheritance relationships.
Results are capped (default 200, max 5000). Pass limit to widen.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"className": "<className>",
"direction": "<direction>"
},
"name": "mc_find_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Optional: max results to return (default 200, ceiling 5000). Non-positive or non-finite values fall back to the 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 or interface name (e.g., "net.minecraft.world.entity.Entity", "net.minecraft.world.item.Item") | |
| direction | Yes | subclasses = classes that extend this class, implementors = classes that implement this interface |