Package net.minecraft.client.gui.hud
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 - fpv$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 SummaryFieldsModifier and TypeFieldDescriptionThe field for theformattedScorerecord component.private final TextThe field for thenamerecord component.private final intThe field for thescorerecord component.private final intThe field for thescoreWidthrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theformattedScorerecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.intscore()Returns the value of thescorerecord component.intReturns the value of thescoreWidthrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
nameThe field for thenamerecord component.
- 
scoreprivate final int scoreThe field for thescorerecord component.
- 
formattedScoreThe field for theformattedScorerecord component.
- 
scoreWidthprivate final int scoreWidthThe field for thescoreWidthrecord component.
 
- 
- 
Constructor Details- 
ScoreDisplayEntry
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
- 
scorepublic int score()Returns the value of thescorerecord component.- Returns:
- the value of the scorerecord component
 
- 
formattedScoreReturns the value of theformattedScorerecord component.- Returns:
- the value of the formattedScorerecord component
 
- 
scoreWidthpublic int scoreWidth()Returns the value of thescoreWidthrecord component.- Returns:
- the value of the scoreWidthrecord component
 
 
-