Forms¶
Section notes in abi.h
Β§G forms (async result callback)
Slots¶
form_send¶
| C | |
|---|---|
kind: 0=SimpleForm 1=CustomForm 2=ModalForm. form_snbt describes the form (see docs/api/gui). The callback fires once, on the server thread, and is muted if the mod is disabled before the player responds.
- Call:
api->form_send(mod, sel, kind, form_snbt, cb, user) - Parameters:
- mod :
PierModHandle - sel :
PierPlayerSel - kind :
int32_t - form_snbt :
PierStr - cb :
PierFormResultCb - user :
void*
- mod :
- Return type:
bool - Section of abi.h: Β§G forms (async result callback)
- Position in the table: slot 53, counting from 0
- Callers in each binding:
- Rust:
SimpleForm::send,ModalForm::send,CustomForm::send - Go:
SendForm
- Rust:
Types¶
PierFormResultCb¶
| C | |
|---|---|
Form result callback. Invoked ONCE on the server thread when the player responds (or the form is cancelled). result_snbt:
| Text Only | |
|---|---|
Muted (never called) if the mod is disabled before the player responds.