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 pGuiGraphics, Objective pObjective) 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 pGuiGraphics, int pWidth, Scoreboard pScoreboard, Objective pObjective) private void
PlayerTabOverlay.renderTablistScore
(Objective pObjective, int pY, PlayerTabOverlay.ScoreDisplayEntry pDisplayEntry, int pMinX, int pMaxX, UUID pPlayerUuid, GuiGraphics pGuiGraphics) -
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> p_101961_, String p_101962_) static Objective
ObjectiveArgument.getWritableObjective
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_101966_, String p_101967_) -
Uses of Objective in net.minecraft.network.protocol.game
Constructors in net.minecraft.network.protocol.game with parameters of type ObjectiveModifierConstructorDescriptionClientboundSetDisplayObjectivePacket
(DisplaySlot pSlot, Objective pObjective) ClientboundSetObjectivePacket
(Objective pObjective, int pMethod) -
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 pObjective) ServerScoreboard.getStartTrackingPackets
(Objective pObjective) ServerScoreboard.getStopTrackingPackets
(Objective pObjective) void
ServerScoreboard.onObjectiveAdded
(Objective pObjective) void
ServerScoreboard.onObjectiveChanged
(Objective pObjective) void
ServerScoreboard.onObjectiveRemoved
(Objective pObjective) void
ServerScoreboard.onPlayerScoreRemoved
(ScoreHolder pScoreHolder, Objective pObjective) protected void
ServerScoreboard.onScoreChanged
(ScoreHolder pScoreHolder, Objective pObjective, Score pScore) protected void
ServerScoreboard.onScoreLockChanged
(ScoreHolder pScoreHolder, Objective pObjective) void
ServerScoreboard.setDisplayObjective
(DisplaySlot pSlot, Objective pObjective) void
ServerScoreboard.startTrackingObjective
(Objective pObjective) void
ServerScoreboard.stopTrackingObjective
(Objective pObjective) -
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 pSource, Collection<ScoreHolder> pTargets, Objective pObjective, int pAmount) private static int
TriggerCommand.addValue
(CommandSourceStack pSource, ServerPlayer pPlayer, Objective pObjective, int pValue) private static int
ScoreboardCommand.enableTrigger
(CommandSourceStack pSource, Collection<ScoreHolder> pTargets, Objective pObjective) private static int
ScoreboardCommand.getScore
(CommandSourceStack pSource, ScoreHolder pScoreHolder, Objective pObjective) private static ScoreAccess
TriggerCommand.getScore
(Scoreboard pScoreboard, ScoreHolder pScoreHolder, Objective pObjective) private static int
ScoreboardCommand.performOperation
(CommandSourceStack pSource, Collection<ScoreHolder> pTargets, Objective pTargetObjectives, OperationArgument.Operation pOperation, Collection<ScoreHolder> pSourceEntities, Objective pSourceObjective) private static int
ScoreboardCommand.removeObjective
(CommandSourceStack pSource, Objective pObjective) private static int
ScoreboardCommand.removeScore
(CommandSourceStack pSource, Collection<ScoreHolder> pTargets, Objective pObjective, int pAmount) private static int
ScoreboardCommand.resetScore
(CommandSourceStack pSource, Collection<ScoreHolder> pTargets, Objective pObjective) private static int
ScoreboardCommand.setDisplayAutoUpdate
(CommandSourceStack pSource, Objective pObjective, boolean pDisplayAutoUpdate) private static int
ScoreboardCommand.setDisplayName
(CommandSourceStack pSource, Objective pObjective, Component pDisplayName) private static int
ScoreboardCommand.setDisplaySlot
(CommandSourceStack pSource, DisplaySlot pSlot, Objective pObjective) private static int
ScoreboardCommand.setObjectiveFormat
(CommandSourceStack pSource, Objective pObjective, NumberFormat pFormat) private static int
ScoreboardCommand.setRenderType
(CommandSourceStack pSource, Objective pObjective, ObjectiveCriteria.RenderType pRenderType) private static int
ScoreboardCommand.setScore
(CommandSourceStack pSource, Collection<ScoreHolder> pTargets, Objective pObjective, int pNewValue) private static int
ScoreboardCommand.setScoreDisplay
(CommandSourceStack pSource, Collection<ScoreHolder> pTargets, Objective pObjective, Component pDisplayName) private static int
ScoreboardCommand.setScoreNumberFormat
(CommandSourceStack pSource, Collection<ScoreHolder> pTargets, Objective pObjective, NumberFormat pNumberFormat) private static int
TriggerCommand.setValue
(CommandSourceStack pSource, ServerPlayer pPlayer, Objective pObjective, int pValue) private static int
TriggerCommand.simpleTrigger
(CommandSourceStack pSource, ServerPlayer pPlayer, Objective pObjective) private static CommandSourceStack
ExecuteCommand.storeValue
(CommandSourceStack pSource, Collection<ScoreHolder> pTargets, Objective pObjective, boolean pStoringResult) -
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 pName, ObjectiveCriteria pCriteria, Component pDisplayName, ObjectiveCriteria.RenderType pRenderType, boolean pDisplayAutoUpdate, NumberFormat pNumberFormat) Scoreboard.getDisplayObjective
(DisplaySlot pSlot) Scoreboard.getObjective
(String pName) 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 p_313893_) 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 pObjective, Consumer<Score> pCreator) Scoreboard.getOrCreatePlayerScore
(ScoreHolder pScoreHolder, Objective pObjective) Scoreboard.getOrCreatePlayerScore
(ScoreHolder pScoreHolder, Objective pObjective, boolean pReadOnly) Scoreboard.getPlayerScoreInfo
(ScoreHolder pScoreHolder, Objective pObjective) Scoreboard.listPlayerScores
(Objective pObjective) void
Scoreboard.onObjectiveAdded
(Objective pObjective) void
Scoreboard.onObjectiveChanged
(Objective pObjective) void
Scoreboard.onObjectiveRemoved
(Objective pObjective) void
Scoreboard.onPlayerScoreRemoved
(ScoreHolder pScoreHolder, Objective pObjective) protected void
Scoreboard.onScoreChanged
(ScoreHolder pScoreHolder, Objective pObjective, Score pScore) protected void
Scoreboard.onScoreLockChanged
(ScoreHolder pScoreHolder, Objective pObjective) boolean
void
Scoreboard.removeObjective
(Objective pObjective) void
Scoreboard.resetSinglePlayerScore
(ScoreHolder pScoreHolder, Objective pObjective) void
Scoreboard.setDisplayObjective
(DisplaySlot pSlot, Objective pObjective) (package private) void