RspmGeyserBridgeExtension

public class RspmGeyserBridgeExtension implements Extension

Entry point Geyser loads for the RSPM custom Bedrock entity bridge.

Geyser's event bus reflects over every declared method of this class when the extension is enabled (getDeclaredMethods()), which resolves the classes in every method signature. If any signature referenced a class a given Geyser build does not ship, that resolution would throw NoClassDefFoundError inside Geyser's own initialization and take all of Geyser down with it — not just this bridge. That includes Geyser internals AND newer API classes: the custom-entity API this bridge uses only exists on Geyser 2.11+.

So this class must stay a pure shell referencing only API classes that exist on every Geyser build we might be dropped into: no imports of org.geysermc.geyser.* outside long-standing org.geysermc.geyser.api.* classes, nothing from mcprotocollib, and no 2.11+ API types. All real logic lives in RspmGeyserBridgeCore, which is only constructed after missingRequiredClass confirms the running Geyser build ships everything we compile against; 2.11+ events are subscribed dynamically from the core for the same reason. If the probe fails, the bridge disables itself with a warning and Geyser keeps running without custom entities.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public void onDefineCustomBlocks(GeyserDefineCustomBlocksEvent event)
Link copied to clipboard
public void onPostInitialize(GeyserPostInitializeEvent event)
Link copied to clipboard
public void onPreInitialize(GeyserPreInitializeEvent event)
Link copied to clipboard
public void onSessionJoin(SessionLoginEvent event)
Link copied to clipboard
public void onSessionQuit(SessionDisconnectEvent event)
Link copied to clipboard
public void onShutdown(GeyserShutdownEvent event)
Link copied to clipboard
public synchronized void shutdown()
Also called directly by the Velocity plugin before it unregisters its relay.

Inherited functions

Link copied to clipboard
public Path dataFolder()
Link copied to clipboard
public ExtensionDescription description()
Link copied to clipboard
public void disable()
Link copied to clipboard
public ExtensionEventBus eventBus()
Link copied to clipboard
public ExtensionLoader extensionLoader()
Link copied to clipboard
public ExtensionManager extensionManager()
Link copied to clipboard
public GeyserApi geyserApi()
Link copied to clipboard
public boolean isEnabled()
Link copied to clipboard
public ExtensionLogger logger()
Link copied to clipboard
public String name()
Link copied to clipboard
public static EventRegistrar of(Object object)
Link copied to clipboard
public String rootCommand()
Link copied to clipboard
public void setEnabled(boolean enabled)