Uses of Class
net.minecraft.world.scores.Objective
Packages that use Objective
Package
Description
-
Uses of Objective in net.minecraft.client.gui
Methods in net.minecraft.client.gui with parameters of type ObjectiveModifier and TypeMethodDescriptionprivate void
Gui.displayScoreboardSidebar
(GuiGraphics guiGraphics, Objective objective) Displays the scoreboard sidebar on the screen using the provided GuiGraphics object and objective. -
Uses of Objective in net.minecraft.client.gui.components
Methods in net.minecraft.client.gui.components with parameters of type ObjectiveModifier and TypeMethodDescriptionvoid
PlayerTabOverlay.render
(GuiGraphics guiGraphics, int width, Scoreboard scoreboard, Objective objective) private void
PlayerTabOverlay.renderTablistScore
(Objective objective, int y, PlayerTabOverlay.ScoreDisplayEntry displayEntry, int minX, int maxX, UUID playerUuid, GuiGraphics guiGraphics) -
Uses of Objective in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return ObjectiveModifier and TypeMethodDescriptionstatic Objective
ObjectiveArgument.getObjective
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) static Objective
ObjectiveArgument.getWritableObjective
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) -
Uses of Objective in net.minecraft.network.protocol.game
Constructors in net.minecraft.network.protocol.game with parameters of type ObjectiveModifierConstructorDescriptionClientboundSetDisplayObjectivePacket
(DisplaySlot slot, Objective objective) ClientboundSetObjectivePacket
(Objective objective, int method) -
Uses of Objective in net.minecraft.server
Fields in net.minecraft.server with type parameters of type ObjectiveMethods in net.minecraft.server with parameters of type ObjectiveModifier and TypeMethodDescriptionint
ServerScoreboard.getObjectiveDisplaySlotCount
(Objective objective) ServerScoreboard.getStartTrackingPackets
(Objective objective) ServerScoreboard.getStopTrackingPackets
(Objective objective) void
ServerScoreboard.onObjectiveAdded
(Objective objective) void
ServerScoreboard.onObjectiveChanged
(Objective objective) void
ServerScoreboard.onObjectiveRemoved
(Objective objective) void
ServerScoreboard.onPlayerScoreRemoved
(ScoreHolder scoreHolder, Objective objective) protected void
ServerScoreboard.onScoreChanged
(ScoreHolder scoreHolder, Objective objective, Score score) protected void
ServerScoreboard.onScoreLockChanged
(ScoreHolder scoreHolder, Objective objective) void
ServerScoreboard.setDisplayObjective
(DisplaySlot slot, Objective p_objective) void
ServerScoreboard.startTrackingObjective
(Objective objective) void
ServerScoreboard.stopTrackingObjective
(Objective objective) -
Uses of Objective in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type ObjectiveModifier and TypeMethodDescriptionprivate static int
ScoreboardCommand.addScore
(CommandSourceStack source, Collection<ScoreHolder> targets, Objective objective, int amount) private static int
TriggerCommand.addValue
(CommandSourceStack source, ServerPlayer player, Objective objective, int value) private static int
ScoreboardCommand.enableTrigger
(CommandSourceStack source, Collection<ScoreHolder> targets, Objective objective) private static int
ScoreboardCommand.getScore
(CommandSourceStack source, ScoreHolder scoreHolder, Objective objective) private static ScoreAccess
TriggerCommand.getScore
(Scoreboard scoreboard, ScoreHolder scoreHolder, Objective objective) private static int
ScoreboardCommand.performOperation
(CommandSourceStack source, Collection<ScoreHolder> targets, Objective targetObjectives, OperationArgument.Operation operation, Collection<ScoreHolder> sourceEntities, Objective sourceObjective) private static int
ScoreboardCommand.removeObjective
(CommandSourceStack source, Objective objective) private static int
ScoreboardCommand.removeScore
(CommandSourceStack source, Collection<ScoreHolder> targets, Objective objective, int amount) private static int
ScoreboardCommand.resetScore
(CommandSourceStack source, Collection<ScoreHolder> targets, Objective objective) private static int
ScoreboardCommand.setDisplayAutoUpdate
(CommandSourceStack source, Objective objective, boolean displayAutoUpdate) private static int
ScoreboardCommand.setDisplayName
(CommandSourceStack source, Objective objective, Component displayName) private static int
ScoreboardCommand.setDisplaySlot
(CommandSourceStack source, DisplaySlot slot, Objective objective) private static int
ScoreboardCommand.setObjectiveFormat
(CommandSourceStack source, Objective objective, NumberFormat format) private static int
ScoreboardCommand.setRenderType
(CommandSourceStack source, Objective objective, ObjectiveCriteria.RenderType renderType) private static int
ScoreboardCommand.setScore
(CommandSourceStack source, Collection<ScoreHolder> targets, Objective objective, int newValue) private static int
ScoreboardCommand.setScoreDisplay
(CommandSourceStack source, Collection<ScoreHolder> targets, Objective objective, Component displayName) private static int
ScoreboardCommand.setScoreNumberFormat
(CommandSourceStack source, Collection<ScoreHolder> targets, Objective objective, NumberFormat numberFormat) private static int
TriggerCommand.setValue
(CommandSourceStack source, ServerPlayer player, Objective objective, int value) private static int
TriggerCommand.simpleTrigger
(CommandSourceStack source, ServerPlayer player, Objective objective) private static CommandSourceStack
ExecuteCommand.storeValue
(CommandSourceStack source, Collection<ScoreHolder> targets, Objective objective, boolean storingResult) -
Uses of Objective in net.minecraft.world.scores
Fields in net.minecraft.world.scores with type parameters of type ObjectiveModifier and TypeFieldDescriptionprivate final Map
<DisplaySlot, Objective> Scoreboard.displayObjectives
private final it.unimi.dsi.fastutil.objects.Reference2ObjectMap
<ObjectiveCriteria, List<Objective>> Scoreboard.objectivesByCriteria
Scoreboard.objectivesByName
PlayerScores.scores
Methods in net.minecraft.world.scores that return ObjectiveModifier and TypeMethodDescriptionScoreboard.addObjective
(String name, ObjectiveCriteria criteria, Component displayName, ObjectiveCriteria.RenderType renderType, boolean displayAutoUpdate, NumberFormat numberFormat) Scoreboard.getDisplayObjective
(DisplaySlot slot) Scoreboard.getObjective
(String name) Returns a ScoreObjective for the objective nameMethods in net.minecraft.world.scores that return types with arguments of type ObjectiveModifier and TypeMethodDescriptionScoreboard.getObjectives()
it.unimi.dsi.fastutil.objects.Object2IntMap
<Objective> Scoreboard.listPlayerScores
(ScoreHolder scoreHolder) PlayerScores.listRawScores()
it.unimi.dsi.fastutil.objects.Object2IntMap
<Objective> PlayerScores.listScores()
Methods in net.minecraft.world.scores with parameters of type ObjectiveModifier and TypeMethodDescriptionPlayerScores.getOrCreate
(Objective objective, Consumer<Score> creator) Scoreboard.getOrCreatePlayerScore
(ScoreHolder scoreHolder, Objective objective) Scoreboard.getOrCreatePlayerScore
(ScoreHolder scoreHolder, Objective objective, boolean readOnly) Scoreboard.getPlayerScoreInfo
(ScoreHolder scoreHolder, Objective objective) Scoreboard.listPlayerScores
(Objective objective) void
Scoreboard.onObjectiveAdded
(Objective objective) void
Scoreboard.onObjectiveChanged
(Objective objective) void
Scoreboard.onObjectiveRemoved
(Objective objective) void
Scoreboard.onPlayerScoreRemoved
(ScoreHolder scoreHolder, Objective objective) protected void
Scoreboard.onScoreChanged
(ScoreHolder scoreHolder, Objective objective, Score score) protected void
Scoreboard.onScoreLockChanged
(ScoreHolder scoreHolder, Objective objective) boolean
void
Scoreboard.removeObjective
(Objective objective) void
Scoreboard.resetSinglePlayerScore
(ScoreHolder scoreHolder, Objective objective) void
Scoreboard.setDisplayObjective
(DisplaySlot slot, Objective objective) (package private) void