Record Class PlayerListHud.ScoreDisplayEntry

java.lang.Object
java.lang.Record
net.minecraft.client.gui.hud.PlayerListHud.ScoreDisplayEntry
Record Components:
name -
score -
formattedScore -
scoreWidth -
Enclosing class:
PlayerListHud

@Environment(CLIENT) private static record PlayerListHud.ScoreDisplayEntry(Text name, int score, @Nullable Text formattedScore, int scoreWidth) extends Record
Mappings:
Namespace Name
named net/minecraft/client/gui/hud/PlayerListHud$ScoreDisplayEntry
intermediary net/minecraft/class_355$class_9018
official fjn$b
named name
intermediary comp_2134
official a
named score
intermediary comp_2135
official b
named formattedScore
intermediary comp_2136
official c
named scoreWidth
intermediary comp_2137
official d
  • Field Details

    • name

      private final Text name
      The field for the name record component.
    • score

      private final int score
      The field for the score record component.
    • formattedScore

      @Nullable private final @Nullable Text formattedScore
      The field for the formattedScore record component.
    • scoreWidth

      private final int scoreWidth
      The field for the scoreWidth record component.
  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • name

      public Text name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • score

      public int score()
      Returns the value of the score record component.
      Returns:
      the value of the score record component
    • formattedScore

      @Nullable public @Nullable Text formattedScore()
      Returns the value of the formattedScore record component.
      Returns:
      the value of the formattedScore record component
    • scoreWidth

      public int scoreWidth()
      Returns the value of the scoreWidth record component.
      Returns:
      the value of the scoreWidth record component