NpcGuiRouter

Central entry point for all NPC GUI interactions.

Checks preconditions (thread safety, combat cooldown, client type) before routing to the appropriate GUI implementation. All entity mobInteract methods should delegate here rather than opening GUIs directly.

See also

for Bedrock player detection

for combat cooldown checks

Functions

Link copied to clipboard
fun open(player: ServerPlayer, entity: Entity)

Opens the appropriate GUI for the given NPC entity and player.