Show CNPC Class Hierarchy
show-hierarchyGet the class inheritance hierarchy (superclass chain and direct subclasses) for a CustomNPCs class.
Instructions
Display the class inheritance hierarchy for a CustomNPCs (CNPC) class.
Returns two sections:
Hierarchy: inheritance chain from the class up to root (-> separated)
Subs: direct subclasses (if any)
Example output for BlockEvent: Hierarchy: BlockEvent -> CustomNPCsEvent -> Event -> Object Subs: BlockEvent$BreakEvent BlockEvent$ClickedEvent ...
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": {
"mc_version": "<mc_version>",
"class": "<class>"
},
"name": "show-hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class | Yes | Fully-qualified class path using '/' separator (e.g. "noppes/npcs/api/entity/ICustomNpc"). Dot notation is also accepted (e.g. "noppes.npcs.api.entity.ICustomNpc"). | |
| mc_version | Yes | CNPC version to query (e.g. "1.12.2", "cnpc+:1.7.10", "1.20.1"). Supported: 1.10.2, 1.11.2, 1.12.2, 1.16.5, 1.18.2, 1.20.1, 1.7.10, 1.8.9, 1.9.4, BetaZavr:1.12.2, BetaZavr:1.20.1, cnpc+:1.7.10 |