Package net.minecraft.scoreboard
Class Scoreboard
java.lang.Object
net.minecraft.scoreboard.Scoreboard
- Direct Known Subclasses:
ServerScoreboard
- Mappings:
Namespace Name official dox
intermediary net/minecraft/class_269
named net/minecraft/scoreboard/Scoreboard
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
private final Map<String,
ScoreboardObjective> private final Map<ScoreboardCriterion,
List<ScoreboardObjective>> private final ScoreboardObjective[]
private final Map<String,
Map<ScoreboardObjective, ScoreboardPlayerScore>> static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddObjective
(String name, ScoreboardCriterion criterion, Text displayName, ScoreboardCriterion.RenderType renderType) boolean
addPlayerToTeam
(String playerName, Team team) boolean
clearPlayerTeam
(String playerName) boolean
containsObjective
(String name) final void
forEachScore
(ScoreboardCriterion criterion, String player, Consumer<ScoreboardPlayerScore> action) getAllPlayerScores
(ScoreboardObjective objective) static int
getDisplaySlotId
(String slotName) static String
getDisplaySlotName
(int slotId) static String[]
getObjective
(String name) getObjectiveForSlot
(int slot) getPlayerObjectives
(String string) getPlayerScore
(String string, ScoreboardObjective objective) getPlayerTeam
(String playerName) getTeams()
boolean
playerHasObjective
(String playerName, ScoreboardObjective objective) protected void
void
removeObjective
(ScoreboardObjective objective) void
removePlayerFromTeam
(String playerName, Team team) void
removeTeam
(Team team) void
resetEntityScore
(Entity entity) void
resetPlayerScore
(String playerName, @Nullable ScoreboardObjective objective) void
setObjectiveSlot
(int slot, @Nullable ScoreboardObjective objective) protected NbtList
toNbt()
void
updateExistingObjective
(ScoreboardObjective objective) void
updateObjective
(ScoreboardObjective objective) void
updatePlayerScore
(String playerName) void
updatePlayerScore
(String playerName, ScoreboardObjective objective) void
updateRemovedObjective
(ScoreboardObjective objective) void
updateRemovedTeam
(Team team) void
updateScore
(ScoreboardPlayerScore score) void
updateScoreboardTeam
(Team team) void
-
Field Details
-
LIST_DISPLAY_SLOT_ID
public static final int LIST_DISPLAY_SLOT_ID- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ldox;a:I
intermediary field_31886
Lnet/minecraft/class_269;field_31886:I
named LIST_DISPLAY_SLOT_ID
Lnet/minecraft/scoreboard/Scoreboard;LIST_DISPLAY_SLOT_ID:I
-
SIDEBAR_DISPLAY_SLOT_ID
public static final int SIDEBAR_DISPLAY_SLOT_ID- See Also:
- Mappings:
Namespace Name Mixin selector official b
Ldox;b:I
intermediary field_31887
Lnet/minecraft/class_269;field_31887:I
named SIDEBAR_DISPLAY_SLOT_ID
Lnet/minecraft/scoreboard/Scoreboard;SIDEBAR_DISPLAY_SLOT_ID:I
-
BELOW_NAME_DISPLAY_SLOT_ID
public static final int BELOW_NAME_DISPLAY_SLOT_ID- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ldox;c:I
intermediary field_31888
Lnet/minecraft/class_269;field_31888:I
named BELOW_NAME_DISPLAY_SLOT_ID
Lnet/minecraft/scoreboard/Scoreboard;BELOW_NAME_DISPLAY_SLOT_ID:I
-
MIN_SIDEBAR_TEAM_DISPLAY_SLOT_ID
public static final int MIN_SIDEBAR_TEAM_DISPLAY_SLOT_ID- See Also:
- Mappings:
Namespace Name Mixin selector official d
Ldox;d:I
intermediary field_31889
Lnet/minecraft/class_269;field_31889:I
named MIN_SIDEBAR_TEAM_DISPLAY_SLOT_ID
Lnet/minecraft/scoreboard/Scoreboard;MIN_SIDEBAR_TEAM_DISPLAY_SLOT_ID:I
-
MAX_SIDEBAR_TEAM_DISPLAY_SLOT_ID
public static final int MAX_SIDEBAR_TEAM_DISPLAY_SLOT_ID- See Also:
- Mappings:
Namespace Name Mixin selector official e
Ldox;e:I
intermediary field_31890
Lnet/minecraft/class_269;field_31890:I
named MAX_SIDEBAR_TEAM_DISPLAY_SLOT_ID
Lnet/minecraft/scoreboard/Scoreboard;MAX_SIDEBAR_TEAM_DISPLAY_SLOT_ID:I
-
DISPLAY_SLOT_COUNT
public static final int DISPLAY_SLOT_COUNT- See Also:
- Mappings:
Namespace Name Mixin selector official f
Ldox;f:I
intermediary field_31891
Lnet/minecraft/class_269;field_31891:I
named DISPLAY_SLOT_COUNT
Lnet/minecraft/scoreboard/Scoreboard;DISPLAY_SLOT_COUNT:I
-
displaySlotNames
- Mappings:
Namespace Name Mixin selector official m
Ldox;m:[Ljava/lang/String;
intermediary field_1430
Lnet/minecraft/class_269;field_1430:[Ljava/lang/String;
named displaySlotNames
Lnet/minecraft/scoreboard/Scoreboard;displaySlotNames:[Ljava/lang/String;
-
objectives
- Mappings:
Namespace Name Mixin selector official g
Ldox;g:Ljava/util/Map;
intermediary field_1428
Lnet/minecraft/class_269;field_1428:Ljava/util/Map;
named objectives
Lnet/minecraft/scoreboard/Scoreboard;objectives:Ljava/util/Map;
-
objectivesByCriterion
- Mappings:
Namespace Name Mixin selector official h
Ldox;h:Ljava/util/Map;
intermediary field_1429
Lnet/minecraft/class_269;field_1429:Ljava/util/Map;
named objectivesByCriterion
Lnet/minecraft/scoreboard/Scoreboard;objectivesByCriterion:Ljava/util/Map;
-
playerObjectives
- Mappings:
Namespace Name Mixin selector official i
Ldox;i:Ljava/util/Map;
intermediary field_1431
Lnet/minecraft/class_269;field_1431:Ljava/util/Map;
named playerObjectives
Lnet/minecraft/scoreboard/Scoreboard;playerObjectives:Ljava/util/Map;
-
objectiveSlots
- Mappings:
Namespace Name Mixin selector official j
Ldox;j:[Ldou;
intermediary field_1432
Lnet/minecraft/class_269;field_1432:[Lnet/minecraft/class_266;
named objectiveSlots
Lnet/minecraft/scoreboard/Scoreboard;objectiveSlots:[Lnet/minecraft/scoreboard/ScoreboardObjective;
-
teams
- Mappings:
Namespace Name Mixin selector official k
Ldox;k:Ljava/util/Map;
intermediary field_1426
Lnet/minecraft/class_269;field_1426:Ljava/util/Map;
named teams
Lnet/minecraft/scoreboard/Scoreboard;teams:Ljava/util/Map;
-
teamsByPlayer
- Mappings:
Namespace Name Mixin selector official l
Ldox;l:Ljava/util/Map;
intermediary field_1427
Lnet/minecraft/class_269;field_1427:Ljava/util/Map;
named teamsByPlayer
Lnet/minecraft/scoreboard/Scoreboard;teamsByPlayer:Ljava/util/Map;
-
-
Constructor Details
-
Scoreboard
public Scoreboard()
-
-
Method Details
-
containsObjective
- Mappings:
Namespace Name Mixin selector official b
Ldox;b(Ljava/lang/String;)Z
intermediary method_1181
Lnet/minecraft/class_269;method_1181(Ljava/lang/String;)Z
named containsObjective
Lnet/minecraft/scoreboard/Scoreboard;containsObjective(Ljava/lang/String;)Z
-
getObjective
- Mappings:
Namespace Name Mixin selector official c
Ldox;c(Ljava/lang/String;)Ldou;
intermediary method_1165
Lnet/minecraft/class_269;method_1165(Ljava/lang/String;)Lnet/minecraft/class_266;
named getObjective
Lnet/minecraft/scoreboard/Scoreboard;getObjective(Ljava/lang/String;)Lnet/minecraft/scoreboard/ScoreboardObjective;
-
getNullableObjective
@Nullable public @Nullable ScoreboardObjective getNullableObjective(@Nullable @Nullable String name) - Mappings:
Namespace Name Mixin selector official d
Ldox;d(Ljava/lang/String;)Ldou;
intermediary method_1170
Lnet/minecraft/class_269;method_1170(Ljava/lang/String;)Lnet/minecraft/class_266;
named getNullableObjective
Lnet/minecraft/scoreboard/Scoreboard;getNullableObjective(Ljava/lang/String;)Lnet/minecraft/scoreboard/ScoreboardObjective;
-
addObjective
public ScoreboardObjective addObjective(String name, ScoreboardCriterion criterion, Text displayName, ScoreboardCriterion.RenderType renderType) - Mappings:
Namespace Name Mixin selector official a
Ldox;a(Ljava/lang/String;Ldpa;Lpt;Ldpa$a;)Ldou;
intermediary method_1168
Lnet/minecraft/class_269;method_1168(Ljava/lang/String;Lnet/minecraft/class_274;Lnet/minecraft/class_2561;Lnet/minecraft/class_274$class_275;)Lnet/minecraft/class_266;
named addObjective
Lnet/minecraft/scoreboard/Scoreboard;addObjective(Ljava/lang/String;Lnet/minecraft/scoreboard/ScoreboardCriterion;Lnet/minecraft/text/Text;Lnet/minecraft/scoreboard/ScoreboardCriterion$RenderType;)Lnet/minecraft/scoreboard/ScoreboardObjective;
-
forEachScore
public final void forEachScore(ScoreboardCriterion criterion, String player, Consumer<ScoreboardPlayerScore> action) - Mappings:
Namespace Name Mixin selector official a
Ldox;a(Ldpa;Ljava/lang/String;Ljava/util/function/Consumer;)V
intermediary method_1162
Lnet/minecraft/class_269;method_1162(Lnet/minecraft/class_274;Ljava/lang/String;Ljava/util/function/Consumer;)V
named forEachScore
Lnet/minecraft/scoreboard/Scoreboard;forEachScore(Lnet/minecraft/scoreboard/ScoreboardCriterion;Ljava/lang/String;Ljava/util/function/Consumer;)V
-
playerHasObjective
- Mappings:
Namespace Name Mixin selector official b
Ldox;b(Ljava/lang/String;Ldou;)Z
intermediary method_1183
Lnet/minecraft/class_269;method_1183(Ljava/lang/String;Lnet/minecraft/class_266;)Z
named playerHasObjective
Lnet/minecraft/scoreboard/Scoreboard;playerHasObjective(Ljava/lang/String;Lnet/minecraft/scoreboard/ScoreboardObjective;)Z
-
getPlayerScore
- Mappings:
Namespace Name Mixin selector official c
Ldox;c(Ljava/lang/String;Ldou;)Ldow;
intermediary method_1180
Lnet/minecraft/class_269;method_1180(Ljava/lang/String;Lnet/minecraft/class_266;)Lnet/minecraft/class_267;
named getPlayerScore
Lnet/minecraft/scoreboard/Scoreboard;getPlayerScore(Ljava/lang/String;Lnet/minecraft/scoreboard/ScoreboardObjective;)Lnet/minecraft/scoreboard/ScoreboardPlayerScore;
-
getAllPlayerScores
- Mappings:
Namespace Name Mixin selector official i
Ldox;i(Ldou;)Ljava/util/Collection;
intermediary method_1184
Lnet/minecraft/class_269;method_1184(Lnet/minecraft/class_266;)Ljava/util/Collection;
named getAllPlayerScores
Lnet/minecraft/scoreboard/Scoreboard;getAllPlayerScores(Lnet/minecraft/scoreboard/ScoreboardObjective;)Ljava/util/Collection;
-
getObjectives
- Mappings:
Namespace Name Mixin selector official c
Ldox;c()Ljava/util/Collection;
intermediary method_1151
Lnet/minecraft/class_269;method_1151()Ljava/util/Collection;
named getObjectives
Lnet/minecraft/scoreboard/Scoreboard;getObjectives()Ljava/util/Collection;
-
getObjectiveNames
- Mappings:
Namespace Name Mixin selector official d
Ldox;d()Ljava/util/Collection;
intermediary method_1163
Lnet/minecraft/class_269;method_1163()Ljava/util/Collection;
named getObjectiveNames
Lnet/minecraft/scoreboard/Scoreboard;getObjectiveNames()Ljava/util/Collection;
-
getKnownPlayers
- Mappings:
Namespace Name Mixin selector official e
Ldox;e()Ljava/util/Collection;
intermediary method_1178
Lnet/minecraft/class_269;method_1178()Ljava/util/Collection;
named getKnownPlayers
Lnet/minecraft/scoreboard/Scoreboard;getKnownPlayers()Ljava/util/Collection;
-
resetPlayerScore
- Mappings:
Namespace Name Mixin selector official d
Ldox;d(Ljava/lang/String;Ldou;)V
intermediary method_1155
Lnet/minecraft/class_269;method_1155(Ljava/lang/String;Lnet/minecraft/class_266;)V
named resetPlayerScore
Lnet/minecraft/scoreboard/Scoreboard;resetPlayerScore(Ljava/lang/String;Lnet/minecraft/scoreboard/ScoreboardObjective;)V
-
getPlayerObjectives
- Mappings:
Namespace Name Mixin selector official e
Ldox;e(Ljava/lang/String;)Ljava/util/Map;
intermediary method_1166
Lnet/minecraft/class_269;method_1166(Ljava/lang/String;)Ljava/util/Map;
named getPlayerObjectives
Lnet/minecraft/scoreboard/Scoreboard;getPlayerObjectives(Ljava/lang/String;)Ljava/util/Map;
-
removeObjective
- Mappings:
Namespace Name Mixin selector official j
Ldox;j(Ldou;)V
intermediary method_1194
Lnet/minecraft/class_269;method_1194(Lnet/minecraft/class_266;)V
named removeObjective
Lnet/minecraft/scoreboard/Scoreboard;removeObjective(Lnet/minecraft/scoreboard/ScoreboardObjective;)V
-
setObjectiveSlot
- Mappings:
Namespace Name Mixin selector official a
Ldox;a(ILdou;)V
intermediary method_1158
Lnet/minecraft/class_269;method_1158(ILnet/minecraft/class_266;)V
named setObjectiveSlot
Lnet/minecraft/scoreboard/Scoreboard;setObjectiveSlot(ILnet/minecraft/scoreboard/ScoreboardObjective;)V
-
getObjectiveForSlot
- Mappings:
Namespace Name Mixin selector official a
Ldox;a(I)Ldou;
intermediary method_1189
Lnet/minecraft/class_269;method_1189(I)Lnet/minecraft/class_266;
named getObjectiveForSlot
Lnet/minecraft/scoreboard/Scoreboard;getObjectiveForSlot(I)Lnet/minecraft/scoreboard/ScoreboardObjective;
-
getTeam
- Mappings:
Namespace Name Mixin selector official f
Ldox;f(Ljava/lang/String;)Ldov;
intermediary method_1153
Lnet/minecraft/class_269;method_1153(Ljava/lang/String;)Lnet/minecraft/class_268;
named getTeam
Lnet/minecraft/scoreboard/Scoreboard;getTeam(Ljava/lang/String;)Lnet/minecraft/scoreboard/Team;
-
addTeam
- Mappings:
Namespace Name Mixin selector official g
Ldox;g(Ljava/lang/String;)Ldov;
intermediary method_1171
Lnet/minecraft/class_269;method_1171(Ljava/lang/String;)Lnet/minecraft/class_268;
named addTeam
Lnet/minecraft/scoreboard/Scoreboard;addTeam(Ljava/lang/String;)Lnet/minecraft/scoreboard/Team;
-
removeTeam
- Mappings:
Namespace Name Mixin selector official d
Ldox;d(Ldov;)V
intermediary method_1191
Lnet/minecraft/class_269;method_1191(Lnet/minecraft/class_268;)V
named removeTeam
Lnet/minecraft/scoreboard/Scoreboard;removeTeam(Lnet/minecraft/scoreboard/Team;)V
-
addPlayerToTeam
- Mappings:
Namespace Name Mixin selector official a
Ldox;a(Ljava/lang/String;Ldov;)Z
intermediary method_1172
Lnet/minecraft/class_269;method_1172(Ljava/lang/String;Lnet/minecraft/class_268;)Z
named addPlayerToTeam
Lnet/minecraft/scoreboard/Scoreboard;addPlayerToTeam(Ljava/lang/String;Lnet/minecraft/scoreboard/Team;)Z
-
clearPlayerTeam
- Mappings:
Namespace Name Mixin selector official h
Ldox;h(Ljava/lang/String;)Z
intermediary method_1195
Lnet/minecraft/class_269;method_1195(Ljava/lang/String;)Z
named clearPlayerTeam
Lnet/minecraft/scoreboard/Scoreboard;clearPlayerTeam(Ljava/lang/String;)Z
-
removePlayerFromTeam
- Mappings:
Namespace Name Mixin selector official b
Ldox;b(Ljava/lang/String;Ldov;)V
intermediary method_1157
Lnet/minecraft/class_269;method_1157(Ljava/lang/String;Lnet/minecraft/class_268;)V
named removePlayerFromTeam
Lnet/minecraft/scoreboard/Scoreboard;removePlayerFromTeam(Ljava/lang/String;Lnet/minecraft/scoreboard/Team;)V
-
getTeamNames
- Mappings:
Namespace Name Mixin selector official f
Ldox;f()Ljava/util/Collection;
intermediary method_1196
Lnet/minecraft/class_269;method_1196()Ljava/util/Collection;
named getTeamNames
Lnet/minecraft/scoreboard/Scoreboard;getTeamNames()Ljava/util/Collection;
-
getTeams
- Mappings:
Namespace Name Mixin selector official g
Ldox;g()Ljava/util/Collection;
intermediary method_1159
Lnet/minecraft/class_269;method_1159()Ljava/util/Collection;
named getTeams
Lnet/minecraft/scoreboard/Scoreboard;getTeams()Ljava/util/Collection;
-
getPlayerTeam
- Mappings:
Namespace Name Mixin selector official i
Ldox;i(Ljava/lang/String;)Ldov;
intermediary method_1164
Lnet/minecraft/class_269;method_1164(Ljava/lang/String;)Lnet/minecraft/class_268;
named getPlayerTeam
Lnet/minecraft/scoreboard/Scoreboard;getPlayerTeam(Ljava/lang/String;)Lnet/minecraft/scoreboard/Team;
-
updateObjective
- Mappings:
Namespace Name Mixin selector official a
Ldox;a(Ldou;)V
intermediary method_1185
Lnet/minecraft/class_269;method_1185(Lnet/minecraft/class_266;)V
named updateObjective
Lnet/minecraft/scoreboard/Scoreboard;updateObjective(Lnet/minecraft/scoreboard/ScoreboardObjective;)V
-
updateExistingObjective
- Mappings:
Namespace Name Mixin selector official b
Ldox;b(Ldou;)V
intermediary method_1175
Lnet/minecraft/class_269;method_1175(Lnet/minecraft/class_266;)V
named updateExistingObjective
Lnet/minecraft/scoreboard/Scoreboard;updateExistingObjective(Lnet/minecraft/scoreboard/ScoreboardObjective;)V
-
updateRemovedObjective
- Mappings:
Namespace Name Mixin selector official c
Ldox;c(Ldou;)V
intermediary method_1173
Lnet/minecraft/class_269;method_1173(Lnet/minecraft/class_266;)V
named updateRemovedObjective
Lnet/minecraft/scoreboard/Scoreboard;updateRemovedObjective(Lnet/minecraft/scoreboard/ScoreboardObjective;)V
-
updateScore
- Mappings:
Namespace Name Mixin selector official a
Ldox;a(Ldow;)V
intermediary method_1176
Lnet/minecraft/class_269;method_1176(Lnet/minecraft/class_267;)V
named updateScore
Lnet/minecraft/scoreboard/Scoreboard;updateScore(Lnet/minecraft/scoreboard/ScoreboardPlayerScore;)V
-
updatePlayerScore
- Mappings:
Namespace Name Mixin selector official a
Ldox;a(Ljava/lang/String;)V
intermediary method_1152
Lnet/minecraft/class_269;method_1152(Ljava/lang/String;)V
named updatePlayerScore
Lnet/minecraft/scoreboard/Scoreboard;updatePlayerScore(Ljava/lang/String;)V
-
updatePlayerScore
- Mappings:
Namespace Name Mixin selector official a
Ldox;a(Ljava/lang/String;Ldou;)V
intermediary method_1190
Lnet/minecraft/class_269;method_1190(Ljava/lang/String;Lnet/minecraft/class_266;)V
named updatePlayerScore
Lnet/minecraft/scoreboard/Scoreboard;updatePlayerScore(Ljava/lang/String;Lnet/minecraft/scoreboard/ScoreboardObjective;)V
-
updateScoreboardTeamAndPlayers
- Mappings:
Namespace Name Mixin selector official a
Ldox;a(Ldov;)V
intermediary method_1160
Lnet/minecraft/class_269;method_1160(Lnet/minecraft/class_268;)V
named updateScoreboardTeamAndPlayers
Lnet/minecraft/scoreboard/Scoreboard;updateScoreboardTeamAndPlayers(Lnet/minecraft/scoreboard/Team;)V
-
updateScoreboardTeam
- Mappings:
Namespace Name Mixin selector official b
Ldox;b(Ldov;)V
intermediary method_1154
Lnet/minecraft/class_269;method_1154(Lnet/minecraft/class_268;)V
named updateScoreboardTeam
Lnet/minecraft/scoreboard/Scoreboard;updateScoreboardTeam(Lnet/minecraft/scoreboard/Team;)V
-
updateRemovedTeam
- Mappings:
Namespace Name Mixin selector official c
Ldox;c(Ldov;)V
intermediary method_1193
Lnet/minecraft/class_269;method_1193(Lnet/minecraft/class_268;)V
named updateRemovedTeam
Lnet/minecraft/scoreboard/Scoreboard;updateRemovedTeam(Lnet/minecraft/scoreboard/Team;)V
-
getDisplaySlotName
- Mappings:
Namespace Name Mixin selector official b
Ldox;b(I)Ljava/lang/String;
intermediary method_1167
Lnet/minecraft/class_269;method_1167(I)Ljava/lang/String;
named getDisplaySlotName
Lnet/minecraft/scoreboard/Scoreboard;getDisplaySlotName(I)Ljava/lang/String;
-
getDisplaySlotId
- Mappings:
Namespace Name Mixin selector official j
Ldox;j(Ljava/lang/String;)I
intermediary method_1192
Lnet/minecraft/class_269;method_1192(Ljava/lang/String;)I
named getDisplaySlotId
Lnet/minecraft/scoreboard/Scoreboard;getDisplaySlotId(Ljava/lang/String;)I
-
getDisplaySlotNames
- Mappings:
Namespace Name Mixin selector official h
Ldox;h()[Ljava/lang/String;
intermediary method_1186
Lnet/minecraft/class_269;method_1186()[Ljava/lang/String;
named getDisplaySlotNames
Lnet/minecraft/scoreboard/Scoreboard;getDisplaySlotNames()[Ljava/lang/String;
-
resetEntityScore
- Mappings:
Namespace Name Mixin selector official a
Ldox;a(Lawm;)V
intermediary method_1150
Lnet/minecraft/class_269;method_1150(Lnet/minecraft/class_1297;)V
named resetEntityScore
Lnet/minecraft/scoreboard/Scoreboard;resetEntityScore(Lnet/minecraft/entity/Entity;)V
-
toNbt
- Mappings:
Namespace Name Mixin selector official i
Ldox;i()Loh;
intermediary method_1169
Lnet/minecraft/class_269;method_1169()Lnet/minecraft/class_2499;
named toNbt
Lnet/minecraft/scoreboard/Scoreboard;toNbt()Lnet/minecraft/nbt/NbtList;
-
readNbt
- Mappings:
Namespace Name Mixin selector official a
Ldox;a(Loh;)V
intermediary method_1188
Lnet/minecraft/class_269;method_1188(Lnet/minecraft/class_2499;)V
named readNbt
Lnet/minecraft/scoreboard/Scoreboard;readNbt(Lnet/minecraft/nbt/NbtList;)V
-