Package net.minecraft.scoreboard
Record Class ScoreboardEntry
java.lang.Object
java.lang.Record
net.minecraft.scoreboard.ScoreboardEntry
- Record Components:
- owner-
- value-
- display-
- numberFormatOverride-
public record ScoreboardEntry(String owner, int value, @Nullable Text display, @Nullable NumberFormat numberFormatOverride)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/scoreboard/ScoreboardEntry- intermediary - net/minecraft/class_9011- official - fbz- named - owner- intermediary - comp_2127- official - a- named - value- intermediary - comp_2128- official - b- named - display- intermediary - comp_2129- official - c- named - numberFormatOverride- intermediary - comp_2130- official - d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe field for thedisplayrecord component.private final @Nullable NumberFormatThe field for thenumberFormatOverriderecord component.private final StringThe field for theownerrecord component.private final intThe field for thevaluerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionScoreboardEntry(String string, int int2, @Nullable Text text, @Nullable NumberFormat numberFormat) 
- 
Method SummaryModifier and TypeMethodDescriptiondisplay()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.formatted(NumberFormat format) final inthashCode()Returns a hash code value for this object.booleanhidden()name()Returns the value of thenumberFormatOverriderecord component.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.
- 
Field Details- 
ownerThe field for theownerrecord component.
- 
valueprivate final int valueThe field for thevaluerecord component.
- 
displayThe field for thedisplayrecord component.
- 
numberFormatOverrideThe field for thenumberFormatOverriderecord component.
 
- 
- 
Constructor Details- 
ScoreboardEntry
 
- 
- 
Method Details
- 
name- Mappings:
- Namespace - Name - Mixin selector - named - name- Lnet/minecraft/scoreboard/ScoreboardEntry;name()Lnet/minecraft/text/Text;- intermediary - method_55387- Lnet/minecraft/class_9011;method_55387()Lnet/minecraft/class_2561;- official - b- Lfbz;b()Lwp;
 
- 
formatted- Mappings:
- Namespace - Name - Mixin selector - named - formatted- Lnet/minecraft/scoreboard/ScoreboardEntry;formatted(Lnet/minecraft/scoreboard/number/NumberFormat;)Lnet/minecraft/text/MutableText;- intermediary - method_55386- Lnet/minecraft/class_9011;method_55386(Lnet/minecraft/class_9022;)Lnet/minecraft/class_5250;- official - a- Lfbz;a(Lyf;)Lxd;
 
- 
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 '=='.
- 
ownerReturns the value of theownerrecord component.- Returns:
- the value of the ownerrecord component
 
- 
valuepublic int value()Returns the value of thevaluerecord component.- Returns:
- the value of the valuerecord component
 
- 
displayReturns the value of thedisplayrecord component.- Returns:
- the value of the displayrecord component
 
- 
numberFormatOverrideReturns the value of thenumberFormatOverriderecord component.- Returns:
- the value of the numberFormatOverriderecord component