triggerEvent

fun triggerEvent(trigger: EventTrigger, data: Any? = null)

Runs whichever of this tile's own events declare a trigger structurally equal to trigger — the remote half of a tile's interaction, and the primary way a TileRenderer starts a server-declared event chain.

Filtering is a plain equality check against events, with no listener registry involved; when no declared event matches, this call is a silent no-op (no UIEvent is emitted at all). When at least one matches, a single UIEvent.EventSchemaHolderUIEvent carrying every match plus data is emitted, and each matching event runs with data as its incomingData.

Parameters

trigger

the EventTrigger to match this tile's declared events against.

data

value passed downstream as the matching event's incomingData. null when the interaction carries no payload (e.g. a plain click).