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 voidGui.displayScoreboardSidebar(GuiGraphics graphics, 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 TypeMethodDescriptionvoidPlayerTabOverlay.render(GuiGraphics graphics, int screenWidth, Scoreboard scoreboard, @Nullable Objective displayObjective) private voidPlayerTabOverlay.renderTablistScore(Objective displayObjective, int yo, PlayerTabOverlay.ScoreDisplayEntry entry, int left, int right, UUID profileId, GuiGraphics graphics) -
Uses of Objective in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return ObjectiveModifier and TypeMethodDescriptionstatic ObjectiveObjectiveArgument.getObjective(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) static ObjectiveObjectiveArgument.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, @Nullable 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 TypeMethodDescriptionintServerScoreboard.getObjectiveDisplaySlotCount(Objective objective) ServerScoreboard.getStartTrackingPackets(Objective objective) ServerScoreboard.getStopTrackingPackets(Objective objective) voidServerScoreboard.onObjectiveAdded(Objective objective) voidServerScoreboard.onObjectiveChanged(Objective objective) voidServerScoreboard.onObjectiveRemoved(Objective objective) voidServerScoreboard.onPlayerScoreRemoved(ScoreHolder player, Objective objective) protected voidServerScoreboard.onScoreChanged(ScoreHolder owner, Objective objective, Score score) protected voidServerScoreboard.onScoreLockChanged(ScoreHolder owner, Objective objective) voidServerScoreboard.setDisplayObjective(DisplaySlot slot, @Nullable Objective objective) voidServerScoreboard.startTrackingObjective(Objective objective) voidServerScoreboard.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 intScoreboardCommand.addScore(CommandSourceStack source, Collection<ScoreHolder> names, Objective objective, int value) private static intTriggerCommand.addValue(CommandSourceStack source, ServerPlayer player, Objective objective, int amount) private static intScoreboardCommand.enableTrigger(CommandSourceStack source, Collection<ScoreHolder> names, Objective objective) private static intScoreboardCommand.getScore(CommandSourceStack source, ScoreHolder target, Objective objective) private static ScoreAccessTriggerCommand.getScore(Scoreboard scoreboard, ScoreHolder scoreHolder, Objective objective) private static intScoreboardCommand.performOperation(CommandSourceStack source, Collection<ScoreHolder> targets, Objective targetObjective, OperationArgument.Operation operation, Collection<ScoreHolder> sources, Objective sourceObjective) private static intScoreboardCommand.removeObjective(CommandSourceStack source, Objective objective) private static intScoreboardCommand.removeScore(CommandSourceStack source, Collection<ScoreHolder> names, Objective objective, int value) private static intScoreboardCommand.resetScore(CommandSourceStack source, Collection<ScoreHolder> names, Objective objective) private static intScoreboardCommand.setDisplayAutoUpdate(CommandSourceStack source, Objective objective, boolean displayAutoUpdate) private static intScoreboardCommand.setDisplayName(CommandSourceStack source, Objective objective, Component displayName) private static intScoreboardCommand.setDisplaySlot(CommandSourceStack source, DisplaySlot slot, Objective objective) private static intScoreboardCommand.setObjectiveFormat(CommandSourceStack source, Objective objective, @Nullable NumberFormat numberFormat) private static intScoreboardCommand.setRenderType(CommandSourceStack source, Objective objective, ObjectiveCriteria.RenderType renderType) private static intScoreboardCommand.setScore(CommandSourceStack source, Collection<ScoreHolder> names, Objective objective, int value) private static intScoreboardCommand.setScoreDisplay(CommandSourceStack source, Collection<ScoreHolder> names, Objective objective, @Nullable Component display) private static intScoreboardCommand.setScoreNumberFormat(CommandSourceStack source, Collection<ScoreHolder> names, Objective objective, @Nullable NumberFormat numberFormat) private static intTriggerCommand.setValue(CommandSourceStack source, ServerPlayer player, Objective objective, int amount) private static intTriggerCommand.simpleTrigger(CommandSourceStack source, ServerPlayer player, Objective objective) private static CommandSourceStackExecuteCommand.storeValue(CommandSourceStack source, Collection<ScoreHolder> names, Objective objective, boolean storeResult) -
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.displayObjectivesprivate final it.unimi.dsi.fastutil.objects.Reference2ObjectMap<ObjectiveCriteria, List<Objective>> Scoreboard.objectivesByCriteriaScoreboard.objectivesByNamePlayerScores.scoresMethods in net.minecraft.world.scores that return ObjectiveModifier and TypeMethodDescriptionScoreboard.addObjective(String name, ObjectiveCriteria criteria, Component displayName, ObjectiveCriteria.RenderType renderType, boolean displayAutoUpdate, @Nullable NumberFormat numberFormat) @Nullable ObjectiveScoreboard.getDisplayObjective(DisplaySlot slot) @Nullable ObjectiveScoreboard.getObjective(@Nullable 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 player) PlayerScores.listRawScores()it.unimi.dsi.fastutil.objects.Object2IntMap<Objective> PlayerScores.listScores()Methods in net.minecraft.world.scores with parameters of type ObjectiveModifier and TypeMethodDescription@Nullable ScorePlayerScores.getOrCreate(Objective objective, Consumer<Score> newResultCallback) Scoreboard.getOrCreatePlayerScore(ScoreHolder holder, Objective objective) Scoreboard.getOrCreatePlayerScore(ScoreHolder scoreHolder, Objective objective, boolean forceWritable) @Nullable ReadOnlyScoreInfoScoreboard.getPlayerScoreInfo(ScoreHolder name, Objective objective) Scoreboard.listPlayerScores(Objective objective) voidScoreboard.onObjectiveAdded(Objective objective) voidScoreboard.onObjectiveChanged(Objective objective) voidScoreboard.onObjectiveRemoved(Objective objective) voidScoreboard.onPlayerScoreRemoved(ScoreHolder player, Objective objective) protected voidScoreboard.onScoreChanged(ScoreHolder owner, Objective objective, Score score) protected voidScoreboard.onScoreLockChanged(ScoreHolder owner, Objective objective) booleanvoidScoreboard.removeObjective(Objective objective) voidScoreboard.resetSinglePlayerScore(ScoreHolder player, Objective objective) voidScoreboard.setDisplayObjective(DisplaySlot slot, @Nullable Objective objective) (package private) void