ProxyStatusRenderer

public final class ProxyStatusRenderer

Renders NetworkSync.Snapshot into a human-readable multi-line block for /rspm status on the proxy side. Platform-neutral — Velocity and Bungee invoke this with their own Consumer<String> that wraps each line into the appropriate platform's message API.

The output mirrors the backend's /rspm status block structure (sections separated by dashed dividers) so operators see consistent layout on both sides of a network. Color codes are MagmaCore-style &-prefix legacy section-symbol formatting; platform adapters are responsible for translating these into whatever the platform's chat API actually renders.

Threading

Reads a NetworkSync.Snapshot that was captured atomically by NetworkSync.snapshot(). The renderer itself does no I/O and no locking — safe to call from any thread including the command dispatch thread.

Constructors

Link copied to clipboard
public void ProxyStatusRenderer(String pluginVersion, String networkKey, NetworkSync.Snapshot snapshot, boolean geyserDetected, boolean floodgateDetected, File geyserPluginDir)

Functions

Link copied to clipboard
public void render(Consumer<String> line)
Emit the status block.