提供: Minecraft Modding Wiki
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
80行目: | 80行目: | ||
特定のプレイヤーに対するObjectiveでの点数を設定します。 | 特定のプレイヤーに対するObjectiveでの点数を設定します。 | ||
<source lang = "java"> | <source lang = "java"> | ||
− | |||
Score score = objective.getScore(player); | Score score = objective.getScore(player); | ||
− | |||
− | |||
− | |||
− | |||
score.setScore(42); | score.setScore(42); | ||
</source> | </source> | ||
95行目: | 90行目: | ||
特定のプレイヤーのスコアをリセットするには、次のようにします。 | 特定のプレイヤーのスコアをリセットするには、次のようにします。 | ||
<source lang = "java"> | <source lang = "java"> | ||
− | |||
board.resetScores(player); | board.resetScores(player); | ||
− | |||
− | |||
− | |||
</source> | </source> | ||