Package net.minecraft.scoreboard
Class Scoreboard
java.lang.Object
net.minecraft.scoreboard.Scoreboard
- Direct Known Subclasses:
ServerScoreboard
- Mappings:
Namespace Name official emx
intermediary net/minecraft/class_269
named net/minecraft/scoreboard/Scoreboard
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
private static final Logger
private final Object2ObjectMap<String,
ScoreboardObjective> private final Reference2ObjectMap<ScoreboardCriterion,
List<ScoreboardObjective>> private final Map<ScoreboardDisplaySlot,
ScoreboardObjective> private final Object2ObjectMap<String,
Team> private final Object2ObjectMap<String,
Team> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddObjective
(String name, ScoreboardCriterion criterion, Text displayName, ScoreboardCriterion.RenderType renderType, boolean displayAutoUpdate, @Nullable NumberFormat numberFormat) boolean
addScoreHolderToTeam
(String scoreHolderName, Team team) void
clearDeadEntity
(Entity entity) boolean
final void
forEachScore
(ScoreboardCriterion criterion, ScoreHolder scoreHolder, Consumer<ScoreAccess> action) getOrCreateScore
(ScoreHolder scoreHolder, ScoreboardObjective objective) getOrCreateScore
(ScoreHolder scoreHolder, ScoreboardObjective objective, boolean forceWritable) getScore
(ScoreHolder scoreHolder, ScoreboardObjective objective) getScoreboardEntries
(ScoreboardObjective objective) getScoreHolderObjectives
(ScoreHolder scoreHolder) getScoreHolderTeam
(String scoreHolderName) private Scores
getTeams()
void
onScoreHolderRemoved
(ScoreHolder scoreHolder) void
onScoreRemoved
(ScoreHolder scoreHolder, ScoreboardObjective objective) protected void
void
removeObjective
(ScoreboardObjective objective) void
removeScore
(ScoreHolder scoreHolder, ScoreboardObjective objective) void
removeScoreHolderFromTeam
(String scoreHolderName, Team team) void
removeScores
(ScoreHolder scoreHolder) void
removeTeam
(Team team) protected void
resetScore
(ScoreHolder scoreHolder, ScoreboardObjective objective) void
setObjectiveSlot
(ScoreboardDisplaySlot slot, @Nullable ScoreboardObjective objective) protected NbtList
toNbt()
void
updateExistingObjective
(ScoreboardObjective objective) void
updateObjective
(ScoreboardObjective objective) void
updateRemovedObjective
(ScoreboardObjective objective) void
updateRemovedTeam
(Team team) protected void
updateScore
(ScoreHolder scoreHolder, ScoreboardObjective objective, ScoreboardScore score) void
updateScoreboardTeam
(Team team) void
-
Field Details
-
field_47542
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lemx;a:Ljava/lang/String;
intermediary field_47542
Lnet/minecraft/class_269;field_47542:Ljava/lang/String;
named field_47542
Lnet/minecraft/scoreboard/Scoreboard;field_47542:Ljava/lang/String;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Lemx;b:Lorg/slf4j/Logger;
intermediary field_36309
Lnet/minecraft/class_269;field_36309:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/scoreboard/Scoreboard;LOGGER:Lorg/slf4j/Logger;
-
objectives
- Mappings:
Namespace Name Mixin selector official c
Lemx;c:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
intermediary field_1428
Lnet/minecraft/class_269;field_1428:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
named objectives
Lnet/minecraft/scoreboard/Scoreboard;objectives:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
-
objectivesByCriterion
private final Reference2ObjectMap<ScoreboardCriterion,List<ScoreboardObjective>> objectivesByCriterion- Mappings:
Namespace Name Mixin selector official d
Lemx;d:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
intermediary field_1429
Lnet/minecraft/class_269;field_1429:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
named objectivesByCriterion
Lnet/minecraft/scoreboard/Scoreboard;objectivesByCriterion:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
-
scores
- Mappings:
Namespace Name Mixin selector official e
Lemx;e:Ljava/util/Map;
intermediary field_1431
Lnet/minecraft/class_269;field_1431:Ljava/util/Map;
named scores
Lnet/minecraft/scoreboard/Scoreboard;scores:Ljava/util/Map;
-
objectiveSlots
- Mappings:
Namespace Name Mixin selector official f
Lemx;f:Ljava/util/Map;
intermediary field_1432
Lnet/minecraft/class_269;field_1432:Ljava/util/Map;
named objectiveSlots
Lnet/minecraft/scoreboard/Scoreboard;objectiveSlots:Ljava/util/Map;
-
teams
- Mappings:
Namespace Name Mixin selector official g
Lemx;g:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
intermediary field_1426
Lnet/minecraft/class_269;field_1426:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
named teams
Lnet/minecraft/scoreboard/Scoreboard;teams:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
-
teamsByScoreHolder
- Mappings:
Namespace Name Mixin selector official h
Lemx;h:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
intermediary field_1427
Lnet/minecraft/class_269;field_1427:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
named teamsByScoreHolder
Lnet/minecraft/scoreboard/Scoreboard;teamsByScoreHolder:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
-
-
Constructor Details
-
Scoreboard
public Scoreboard()
-
-
Method Details
-
getNullableObjective
@Nullable public @Nullable ScoreboardObjective getNullableObjective(@Nullable @Nullable String name) - Mappings:
Namespace Name Mixin selector official a
Lemx;a(Ljava/lang/String;)Lemp;
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, boolean displayAutoUpdate, @Nullable @Nullable NumberFormat numberFormat) - Mappings:
Namespace Name Mixin selector official a
Lemx;a(Ljava/lang/String;Lena;Lvf;Lena$a;ZLwv;)Lemp;
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;ZLnet/minecraft/class_9022;)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;ZLnet/minecraft/scoreboard/number/NumberFormat;)Lnet/minecraft/scoreboard/ScoreboardObjective;
-
forEachScore
public final void forEachScore(ScoreboardCriterion criterion, ScoreHolder scoreHolder, Consumer<ScoreAccess> action) - Mappings:
Namespace Name Mixin selector official a
Lemx;a(Lena;Lemw;Ljava/util/function/Consumer;)V
intermediary method_1162
Lnet/minecraft/class_269;method_1162(Lnet/minecraft/class_274;Lnet/minecraft/class_9015;Ljava/util/function/Consumer;)V
named forEachScore
Lnet/minecraft/scoreboard/Scoreboard;forEachScore(Lnet/minecraft/scoreboard/ScoreboardCriterion;Lnet/minecraft/scoreboard/ScoreHolder;Ljava/util/function/Consumer;)V
-
getScores
- Mappings:
Namespace Name Mixin selector official f
Lemx;f(Ljava/lang/String;)Lemr;
intermediary method_55431
Lnet/minecraft/class_269;method_55431(Ljava/lang/String;)Lnet/minecraft/class_9012;
named getScores
Lnet/minecraft/scoreboard/Scoreboard;getScores(Ljava/lang/String;)Lnet/minecraft/scoreboard/Scores;
-
getOrCreateScore
- Mappings:
Namespace Name Mixin selector official c
Lemx;c(Lemw;Lemp;)Lemv;
intermediary method_1180
Lnet/minecraft/class_269;method_1180(Lnet/minecraft/class_9015;Lnet/minecraft/class_266;)Lnet/minecraft/class_9014;
named getOrCreateScore
Lnet/minecraft/scoreboard/Scoreboard;getOrCreateScore(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/scoreboard/ScoreboardObjective;)Lnet/minecraft/scoreboard/ScoreAccess;
-
getOrCreateScore
public ScoreAccess getOrCreateScore(ScoreHolder scoreHolder, ScoreboardObjective objective, boolean forceWritable) - Mappings:
Namespace Name Mixin selector official a
Lemx;a(Lemw;Lemp;Z)Lemv;
intermediary method_55425
Lnet/minecraft/class_269;method_55425(Lnet/minecraft/class_9015;Lnet/minecraft/class_266;Z)Lnet/minecraft/class_9014;
named getOrCreateScore
Lnet/minecraft/scoreboard/Scoreboard;getOrCreateScore(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/scoreboard/ScoreboardObjective;Z)Lnet/minecraft/scoreboard/ScoreAccess;
-
getScore
@Nullable public @Nullable ReadableScoreboardScore getScore(ScoreHolder scoreHolder, ScoreboardObjective objective) - Mappings:
Namespace Name Mixin selector official d
Lemx;d(Lemw;Lemp;)Lemt;
intermediary method_55430
Lnet/minecraft/class_269;method_55430(Lnet/minecraft/class_9015;Lnet/minecraft/class_266;)Lnet/minecraft/class_9013;
named getScore
Lnet/minecraft/scoreboard/Scoreboard;getScore(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/scoreboard/ScoreboardObjective;)Lnet/minecraft/scoreboard/ReadableScoreboardScore;
-
getScoreboardEntries
- Mappings:
Namespace Name Mixin selector official i
Lemx;i(Lemp;)Ljava/util/Collection;
intermediary method_1184
Lnet/minecraft/class_269;method_1184(Lnet/minecraft/class_266;)Ljava/util/Collection;
named getScoreboardEntries
Lnet/minecraft/scoreboard/Scoreboard;getScoreboardEntries(Lnet/minecraft/scoreboard/ScoreboardObjective;)Ljava/util/Collection;
-
getObjectives
- Mappings:
Namespace Name Mixin selector official c
Lemx;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
Lemx;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;
-
getKnownScoreHolders
- Mappings:
Namespace Name Mixin selector official e
Lemx;e()Ljava/util/Collection;
intermediary method_1178
Lnet/minecraft/class_269;method_1178()Ljava/util/Collection;
named getKnownScoreHolders
Lnet/minecraft/scoreboard/Scoreboard;getKnownScoreHolders()Ljava/util/Collection;
-
removeScores
- Mappings:
Namespace Name Mixin selector official b
Lemx;b(Lemw;)V
intermediary method_55429
Lnet/minecraft/class_269;method_55429(Lnet/minecraft/class_9015;)V
named removeScores
Lnet/minecraft/scoreboard/Scoreboard;removeScores(Lnet/minecraft/scoreboard/ScoreHolder;)V
-
removeScore
- Mappings:
Namespace Name Mixin selector official e
Lemx;e(Lemw;Lemp;)V
intermediary method_1155
Lnet/minecraft/class_269;method_1155(Lnet/minecraft/class_9015;Lnet/minecraft/class_266;)V
named removeScore
Lnet/minecraft/scoreboard/Scoreboard;removeScore(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/scoreboard/ScoreboardObjective;)V
-
getScoreHolderObjectives
- Mappings:
Namespace Name Mixin selector official c
Lemx;c(Lemw;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary method_1166
Lnet/minecraft/class_269;method_1166(Lnet/minecraft/class_9015;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
named getScoreHolderObjectives
Lnet/minecraft/scoreboard/Scoreboard;getScoreHolderObjectives(Lnet/minecraft/scoreboard/ScoreHolder;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
removeObjective
- Mappings:
Namespace Name Mixin selector official j
Lemx;j(Lemp;)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
public void setObjectiveSlot(ScoreboardDisplaySlot slot, @Nullable @Nullable ScoreboardObjective objective) - Mappings:
Namespace Name Mixin selector official a
Lemx;a(Lemo;Lemp;)V
intermediary method_1158
Lnet/minecraft/class_269;method_1158(Lnet/minecraft/class_8646;Lnet/minecraft/class_266;)V
named setObjectiveSlot
Lnet/minecraft/scoreboard/Scoreboard;setObjectiveSlot(Lnet/minecraft/scoreboard/ScoreboardDisplaySlot;Lnet/minecraft/scoreboard/ScoreboardObjective;)V
-
getObjectiveForSlot
- Mappings:
Namespace Name Mixin selector official a
Lemx;a(Lemo;)Lemp;
intermediary method_1189
Lnet/minecraft/class_269;method_1189(Lnet/minecraft/class_8646;)Lnet/minecraft/class_266;
named getObjectiveForSlot
Lnet/minecraft/scoreboard/Scoreboard;getObjectiveForSlot(Lnet/minecraft/scoreboard/ScoreboardDisplaySlot;)Lnet/minecraft/scoreboard/ScoreboardObjective;
-
getTeam
- Mappings:
Namespace Name Mixin selector official b
Lemx;b(Ljava/lang/String;)Lems;
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 c
Lemx;c(Ljava/lang/String;)Lems;
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
Lemx;d(Lems;)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
-
addScoreHolderToTeam
- Mappings:
Namespace Name Mixin selector official a
Lemx;a(Ljava/lang/String;Lems;)Z
intermediary method_1172
Lnet/minecraft/class_269;method_1172(Ljava/lang/String;Lnet/minecraft/class_268;)Z
named addScoreHolderToTeam
Lnet/minecraft/scoreboard/Scoreboard;addScoreHolderToTeam(Ljava/lang/String;Lnet/minecraft/scoreboard/Team;)Z
-
clearTeam
- Mappings:
Namespace Name Mixin selector official d
Lemx;d(Ljava/lang/String;)Z
intermediary method_1195
Lnet/minecraft/class_269;method_1195(Ljava/lang/String;)Z
named clearTeam
Lnet/minecraft/scoreboard/Scoreboard;clearTeam(Ljava/lang/String;)Z
-
removeScoreHolderFromTeam
- Mappings:
Namespace Name Mixin selector official b
Lemx;b(Ljava/lang/String;Lems;)V
intermediary method_1157
Lnet/minecraft/class_269;method_1157(Ljava/lang/String;Lnet/minecraft/class_268;)V
named removeScoreHolderFromTeam
Lnet/minecraft/scoreboard/Scoreboard;removeScoreHolderFromTeam(Ljava/lang/String;Lnet/minecraft/scoreboard/Team;)V
-
getTeamNames
- Mappings:
Namespace Name Mixin selector official f
Lemx;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
Lemx;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;
-
getScoreHolderTeam
- Mappings:
Namespace Name Mixin selector official e
Lemx;e(Ljava/lang/String;)Lems;
intermediary method_1164
Lnet/minecraft/class_269;method_1164(Ljava/lang/String;)Lnet/minecraft/class_268;
named getScoreHolderTeam
Lnet/minecraft/scoreboard/Scoreboard;getScoreHolderTeam(Ljava/lang/String;)Lnet/minecraft/scoreboard/Team;
-
updateObjective
- Mappings:
Namespace Name Mixin selector official a
Lemx;a(Lemp;)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
Lemx;b(Lemp;)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
Lemx;c(Lemp;)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
protected void updateScore(ScoreHolder scoreHolder, ScoreboardObjective objective, ScoreboardScore score) - Mappings:
Namespace Name Mixin selector official a
Lemx;a(Lemw;Lemp;Lemu;)V
intermediary method_1176
Lnet/minecraft/class_269;method_1176(Lnet/minecraft/class_9015;Lnet/minecraft/class_266;Lnet/minecraft/class_267;)V
named updateScore
Lnet/minecraft/scoreboard/Scoreboard;updateScore(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/scoreboard/ScoreboardObjective;Lnet/minecraft/scoreboard/ScoreboardScore;)V
-
resetScore
- Mappings:
Namespace Name Mixin selector official a
Lemx;a(Lemw;Lemp;)V
intermediary method_55337
Lnet/minecraft/class_269;method_55337(Lnet/minecraft/class_9015;Lnet/minecraft/class_266;)V
named resetScore
Lnet/minecraft/scoreboard/Scoreboard;resetScore(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/scoreboard/ScoreboardObjective;)V
-
onScoreHolderRemoved
- Mappings:
Namespace Name Mixin selector official a
Lemx;a(Lemw;)V
intermediary method_1152
Lnet/minecraft/class_269;method_1152(Lnet/minecraft/class_9015;)V
named onScoreHolderRemoved
Lnet/minecraft/scoreboard/Scoreboard;onScoreHolderRemoved(Lnet/minecraft/scoreboard/ScoreHolder;)V
-
onScoreRemoved
- Mappings:
Namespace Name Mixin selector official b
Lemx;b(Lemw;Lemp;)V
intermediary method_1190
Lnet/minecraft/class_269;method_1190(Lnet/minecraft/class_9015;Lnet/minecraft/class_266;)V
named onScoreRemoved
Lnet/minecraft/scoreboard/Scoreboard;onScoreRemoved(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/scoreboard/ScoreboardObjective;)V
-
updateScoreboardTeamAndPlayers
- Mappings:
Namespace Name Mixin selector official a
Lemx;a(Lems;)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
Lemx;b(Lems;)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
Lemx;c(Lems;)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
-
clearDeadEntity
- Mappings:
Namespace Name Mixin selector official a
Lemx;a(Lblv;)V
intermediary method_1150
Lnet/minecraft/class_269;method_1150(Lnet/minecraft/class_1297;)V
named clearDeadEntity
Lnet/minecraft/scoreboard/Scoreboard;clearDeadEntity(Lnet/minecraft/entity/Entity;)V
-
toNbt
- Mappings:
Namespace Name Mixin selector official h
Lemx;h()Lst;
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
Lemx;a(Lst;)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
-