Skip to content

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.

TypeKindDescription
RoleclassCentral NPC runtime: owns all support subsystems, behavior tree, motion controllers, and steering.
Role.SeparationModeenumSeparation behaviour mode for NPC movement within a Role.
RoleDebugDisplayclassRenders debug information (state, flock, HP, speed, targets) into NPC nameplates.
RoleDebugFlagsenum35 debug flags controlling trace logging, visualization, and display overlays.
RoleUtilsclassStatic utility methods for NPC inventory management (hotbar, off-hand, armor).
SpawnEffectinterfaceContract 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.