RspmGeyserBridgeCore

All bridge logic that touches Geyser internals or 2.11+ API surfaces. This class must only be loaded after RspmGeyserBridgeExtension has probed that this Geyser build still ships the classes we compile against — never reference it from a signature Geyser reflects over.

Geyser 2.11.0 introduced a public custom-entity API, which this bridge now uses for the heavy lifting:

  • register — registers custom Bedrock entity definitions.
  • GeyserDefineEntityPropertiesEvent — registers every custom property during Geyser's dedicated property-definition window. Geyser intentionally rejects property creation after this event.
  • definition — swaps the Bedrock definition of a spawning entity, replacing the vendored packet-translator copy the bridge shipped for pre-2.11 Geyser.
  • updateProperty and override — apply runtime property/metadata updates.
Internals are still required for custom definition instances and for the downstream packet listener that receives RSPM's plugin messages. Definitions that arrive after Geyser freezes its registries are retained for the next restart; they are never forced into the live registries.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
public final static int MAX_PROPERTY_VALUE
Link copied to clipboard
public final static int MIN_PROPERTY_VALUE

Functions

Link copied to clipboard
public void onDefineEntities(GeyserDefineEntitiesEvent event)
Link copied to clipboard
public void onDefineEntityProperties(GeyserDefineEntityPropertiesEvent event)
Link copied to clipboard
public synchronized void onPostInitialize()
Link copied to clipboard
public void onServerSpawnEntity(ServerSpawnEntityEvent event)
Link copied to clipboard
public void onSessionJoin(GeyserConnection connection)
Link copied to clipboard
public void onSessionQuit(GeyserConnection connection)
Link copied to clipboard
public void shutdown()
Link copied to clipboard
public synchronized void subscribeVersionedEvents()
Subscribes to API events that only exist on Geyser 2.11+.