Skip to content

Add a name above head line rendering API #5

@Yedelo

Description

@Yedelo

Make a NameLineAPI, HeadLineAPI, whatever, an API for rendering lines above a players's head.
This would be driven by, for consistency, a NameLineEvent. This would expose a list of NameLines, which could be modified with NameLineBuilders.
Example code:

@Subscribe
public void addSimpleNameLine(NameLineEvent event) {
    event.getNameLines().add(new NameLine().setText("Hello").showWhileSneaking(true));
}

Current consumers of this event would be strength indicatora and bounty hunting, and it could allow for easier displaying of information.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions