GeyserBinder

public final class GeyserBinder

Bedrock-side glue. Subscribes to Geyser's SessionLoadResourcePacksEvent via the proxy's Geyser API and registers a PackCodec.path(...) pointing at the on-disk merged Bedrock pack file. Geyser serves the bytes from disk to Bedrock clients via the Bedrock protocol — no HTTP server is involved on the proxy.

Updates the registered file when onMergedPackReady is called by NetworkSync. Per-session registration uses the latest pack generation in current. Exposed generations remain immutable for the JVM lifetime because Geyser reads their paths after session registration.

This class is platform-neutral within the Geyser ecosystem — the same instance works on Geyser-Velocity, Geyser-BungeeCord, Geyser-Standalone, etc. The proxy plugin instantiates it once and gives it the platform-specific EventRegistrar.

Constructors

Link copied to clipboard
public void GeyserBinder(ProxyLogger logger, EventRegistrar registrar, BiConsumer<String, String> onPackUnavailableJavaBroadcast)

Functions

Link copied to clipboard
public void onMergedPackReady(MergedPack pack)
Called by NetworkSync when a new merged pack is published.
Link copied to clipboard
public void register()
Subscribe to SessionLoadResourcePacksEvent.
Link copied to clipboard
public void unregister()
Unsubscribe all our Geyser event subscriptions.