Record Class ScoreboardState.Packed

java.lang.Object
java.lang.Record
net.minecraft.scoreboard.ScoreboardState.Packed
Record Components:
objectives -
scores -
displaySlots -
teams -
Enclosing class:
ScoreboardState

public static record ScoreboardState.Packed(List<ScoreboardObjective.Packed> objectives, List<Scoreboard.PackedEntry> scores, Map<ScoreboardDisplaySlot,String> displaySlots, List<Team.Packed> teams) extends Record
Mappings:
Namespace Name
named net/minecraft/scoreboard/ScoreboardState$Packed
intermediary net/minecraft/class_273$class_10745
official fjy$a
named objectives
intermediary comp_3665
official b
named scores
intermediary comp_3666
official c
named displaySlots
intermediary comp_3667
official d
named teams
intermediary comp_3668
official e
  • Field Details

    • objectives

      private final List<ScoreboardObjective.Packed> objectives
      The field for the objectives record component.
    • scores

      private final List<Scoreboard.PackedEntry> scores
      The field for the scores record component.
    • displaySlots

      private final Map<ScoreboardDisplaySlot,String> displaySlots
      The field for the displaySlots record component.
    • teams

      private final List<Team.Packed> teams
      The field for the teams record component.
    • CODEC

      public static final com.mojang.serialization.Codec<ScoreboardState.Packed> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/scoreboard/ScoreboardState$Packed;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56485 Lnet/minecraft/class_273$class_10745;field_56485:Lcom/mojang/serialization/Codec;
      official a Lfjy$a;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • objectives

      public List<ScoreboardObjective.Packed> objectives()
      Returns the value of the objectives record component.
      Returns:
      the value of the objectives record component
    • scores

      public List<Scoreboard.PackedEntry> scores()
      Returns the value of the scores record component.
      Returns:
      the value of the scores record component
    • displaySlots

      public Map<ScoreboardDisplaySlot,String> displaySlots()
      Returns the value of the displaySlots record component.
      Returns:
      the value of the displaySlots record component
    • teams

      public List<Team.Packed> teams()
      Returns the value of the teams record component.
      Returns:
      the value of the teams record component