Skip to content

RoleDebugDisplay

Package: com.hypixel.hytale.server.npc.role

public class RoleDebugDisplay

Renders debug information into an NPC’s nameplate based on active RoleDebugFlags. Supports displaying: state name, time of day, flock membership, animation slots, locked target details (player username or NPC role name), light levels (sky/block RGB), pathfinder status, custom strings, free inventory slots, HP, stamina, speed, internal entity ID, role name, and marked target visualization arrows.

ModifierReturn TypeSignature
publicvoiddisplay(@Nonnull Role role, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull CommandBuffer<EntityStore> commandBuffer)
@Nullable public staticRoleDebugDisplaycreate(@Nonnull EnumSet<RoleDebugFlags> debugFlags, @Nullable RoleDebugDisplay existingDisplay)

The display method builds a string from all enabled debug flags and sets it as the NPC’s Nameplate text. The create factory returns null if no display-relevant flags are set, avoiding unnecessary nameplate updates. Reuses an existing instance when available to minimize allocation.

Each boolean field corresponds to a RoleDebugFlags enum constant: debugDisplayState, debugDisplayTime, debugDisplayFlock, debugDisplayAnim, debugDisplayLockedTarget, debugDisplayLightLevel, debugDisplayFreeSlots, debugDisplayCustom, debugDisplayPathFinder, debugDisplayHP, debugDisplayStamina, debugDisplaySpeed, debugDisplayInternalId, debugDisplayName, debugVisMarkedTargets.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.