execute

fun <T> execute(player: Player, operation: () -> T): T(source)

Updates or reads caller-retained UI state under the player's owner from an existing entity-region callback. This call is synchronous and does not schedule work; asynchronous callers must first use the player's scheduler. Do not share owner-confined UI state between players or capture it from another physical thread.