PartyMemberDisplay

public final class PartyMemberDisplay

One party member as a viewer sees them: the party sidebar line and the raw values behind it. Reads Bukkit state, so it runs on the main thread; the party sidebar and the PlaceholderAPI snapshot both use it.

Types

Link copied to clipboard
public final class MemberState extends Record
Raw member values.

Functions

Link copied to clipboard
public static DungeonInstance getDungeonInstance(Player viewer)
The dungeon whose lives and downed state the viewer's sidebar shows, or null.
Link copied to clipboard
public static String renderLine(String template, PartyMemberDisplay.MemberState state)
Renders a party sidebar line, color codes converted.
Link copied to clipboard
public static PartyMemberDisplay.MemberState state(Player member, DungeonInstance dungeonInstance)
Link copied to clipboard
public static String template(Party party, UUID memberId)
The leader or member line template for this member.