Class Scoreboard

java.lang.Object
net.minecraft.world.scores.Scoreboard
Direct Known Subclasses:
ServerScoreboard

public class Scoreboard extends Object
  • Field Details

  • Constructor Details

    • Scoreboard

      public Scoreboard()
  • Method Details

    • hasObjective

      public boolean hasObjective(String p_83460_)
    • getOrCreateObjective

      public Objective getOrCreateObjective(String p_83470_)
    • getObjective

      @Nullable public Objective getObjective(@Nullable String p_83478_)
    • addObjective

      public Objective addObjective(String p_83437_, ObjectiveCriteria p_83438_, Component p_83439_, ObjectiveCriteria.RenderType p_83440_)
    • forAllObjectives

      public final void forAllObjectives(ObjectiveCriteria p_83428_, String p_83429_, Consumer<Score> p_83430_)
    • hasPlayerScore

      public boolean hasPlayerScore(String p_83462_, Objective p_83463_)
    • getOrCreatePlayerScore

      public Score getOrCreatePlayerScore(String p_83472_, Objective p_83473_)
    • getPlayerScores

      public Collection<Score> getPlayerScores(Objective p_83499_)
    • getObjectives

      public Collection<Objective> getObjectives()
    • getObjectiveNames

      public Collection<String> getObjectiveNames()
    • getTrackedPlayers

      public Collection<String> getTrackedPlayers()
    • resetPlayerScore

      public void resetPlayerScore(String p_83480_, @Nullable Objective p_83481_)
    • getPlayerScores

      public Map<Objective,Score> getPlayerScores(String p_83484_)
    • removeObjective

      public void removeObjective(Objective p_83503_)
    • setDisplayObjective

      public void setDisplayObjective(int p_83418_, @Nullable Objective p_83419_)
    • getDisplayObjective

      @Nullable public Objective getDisplayObjective(int p_83417_)
    • getPlayerTeam

      @Nullable public PlayerTeam getPlayerTeam(String p_83490_)
    • addPlayerTeam

      public PlayerTeam addPlayerTeam(String p_83493_)
    • removePlayerTeam

      public void removePlayerTeam(PlayerTeam p_83476_)
    • addPlayerToTeam

      public boolean addPlayerToTeam(String p_83434_, PlayerTeam p_83435_)
    • removePlayerFromTeam

      public boolean removePlayerFromTeam(String p_83496_)
    • removePlayerFromTeam

      public void removePlayerFromTeam(String p_83464_, PlayerTeam p_83465_)
    • getTeamNames

      public Collection<String> getTeamNames()
    • getPlayerTeams

      public Collection<PlayerTeam> getPlayerTeams()
    • getPlayersTeam

      @Nullable public PlayerTeam getPlayersTeam(String p_83501_)
    • onObjectiveAdded

      public void onObjectiveAdded(Objective p_83422_)
    • onObjectiveChanged

      public void onObjectiveChanged(Objective p_83455_)
    • onObjectiveRemoved

      public void onObjectiveRemoved(Objective p_83467_)
    • onScoreChanged

      public void onScoreChanged(Score p_83424_)
    • onPlayerRemoved

      public void onPlayerRemoved(String p_83431_)
    • onPlayerScoreRemoved

      public void onPlayerScoreRemoved(String p_83432_, Objective p_83433_)
    • onTeamAdded

      public void onTeamAdded(PlayerTeam p_83423_)
    • onTeamChanged

      public void onTeamChanged(PlayerTeam p_83456_)
    • onTeamRemoved

      public void onTeamRemoved(PlayerTeam p_83468_)
    • getDisplaySlotName

      public static String getDisplaySlotName(int p_83454_)
    • getDisplaySlotByName

      public static int getDisplaySlotByName(String p_83505_)
    • getDisplaySlotNames

      public static String[] getDisplaySlotNames()
    • entityRemoved

      public void entityRemoved(Entity p_83421_)
    • savePlayerScores

      protected ListTag savePlayerScores()
    • loadPlayerScores

      protected void loadPlayerScores(ListTag p_83446_)