Scoreboard¶
Section notes in abi.h
Β§F scoreboard
Slots¶
scoreboard_op¶
| C | |
|---|---|
- Call:
api->scoreboard_op(op, a, b, n, ctx, out) - Parameters:
- op :
int32_t - a :
PierStr - b :
PierStr - n :
int64_t - ctx :
void* - out :
PierStrSink
- op :
- Return type:
bool - Section of abi.h: Β§F scoreboard
- Position in the table: slot 52, counting from 0
- Callers in each binding:
- Rust:
Scoreboard::add_objective,Scoreboard::remove_objective,Scoreboard::objectives,Scoreboard::score,Scoreboard::set_score,Scoreboard::add_scoreand more, 10 in all - Go:
Scoreboard,Raw.ScoreboardOp
- Rust:
PierScoreboardOp¶
scoreboard_op verbs (args a=objective/slot, b=target, n=value).
| Name | Value | Description |
|---|---|---|
PIER_SB_ADD_OBJECTIVE |
0 |
a=name, b=display name β out "1" Scoreboard::addObjective("dummy") |
PIER_SB_REMOVE_OBJECTIVE |
1 |
a=name Scoreboard::removeObjective |
PIER_SB_LIST_OBJECTIVES |
2 |
β out SNBT [{name,display},β¦] Scoreboard::getObjectives |
PIER_SB_GET_SCORE |
3 |
a=objective, b=fake-player name β out value Objective::getPlayerScore |
PIER_SB_SET_SCORE |
4 |
a=objective, b=name, n=value Scoreboard::modifyPlayerScore(Set) |
PIER_SB_ADD_SCORE |
5 |
a=objective, b=name, n=value β¦ (Add) |
PIER_SB_REDUCE_SCORE |
6 |
a=objective, b=name, n=value β¦ (Subtract) |
PIER_SB_RESET_SCORE |
7 |
a=objective, b=name Scoreboard::resetPlayerScore |
PIER_SB_SET_DISPLAY |
8 |
a=slot("sidebar"/"list"/"belowname"), b=objective setDisplayObjective |
PIER_SB_CLEAR_DISPLAY |
9 |
a=slot clearDisplayObjective |