com.hypixel.hytale.server.npc.role
Package: com.hypixel.hytale.server.npc.role
Root package for NPC role runtime. A Role is the central runtime object attached to each NPC, owning all behavior support subsystems, the instruction tree (behavior tree), motion controllers, steering state, and configuration derived from the JSON role asset. This package also contains debug display/flag infrastructure, inventory utility methods, and the spawn effect interface.
| Type | Kind | Description |
|---|---|---|
| Role | class | Central NPC runtime: owns all support subsystems, behavior tree, motion controllers, and steering. |
| Role.SeparationMode | enum | Separation behaviour mode for NPC movement within a Role. |
| RoleDebugDisplay | class | Renders debug information (state, flock, HP, speed, targets) into NPC nameplates. |
| RoleDebugFlags | enum | 35 debug flags controlling trace logging, visualization, and display overlays. |
| RoleUtils | class | Static utility methods for NPC inventory management (hotbar, off-hand, armor). |
| SpawnEffect | interface | Contract for spawning particle effects at NPC spawn positions. |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.