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 official emq
intermediary net/minecraft/class_9011
named net/minecraft/scoreboard/ScoreboardEntry
official a
intermediary comp_2127
named owner
official b
intermediary comp_2128
named value
official c
intermediary comp_2129
named display
official d
intermediary comp_2130
named numberFormatOverride
-
Field Summary
Modifier and TypeFieldDescriptionThe field for thedisplay
record component.private final @Nullable NumberFormat
The field for thenumberFormatOverride
record component.private final String
The field for theowner
record component.private final int
The field for thevalue
record component. -
Constructor Summary
ConstructorDescriptionScoreboardEntry
(String string, int int2, @Nullable Text text, @Nullable NumberFormat numberFormat) -
Method Summary
Modifier and TypeMethodDescriptiondisplay()
Returns the value of thedisplay
record component.final boolean
Indicates whether some other object is "equal to" this one.formatted
(NumberFormat format) final int
hashCode()
Returns a hash code value for this object.boolean
hidden()
name()
Returns the value of thenumberFormatOverride
record component.owner()
Returns the value of theowner
record component.final String
toString()
Returns a string representation of this record class.int
value()
Returns the value of thevalue
record component.
-
Field Details
-
owner
The field for theowner
record component. -
value
private final int valueThe field for thevalue
record component. -
display
The field for thedisplay
record component. -
numberFormatOverride
The field for thenumberFormatOverride
record component.
-
-
Constructor Details
-
ScoreboardEntry
-
-
Method Details
-
name
- Mappings:
Namespace Name Mixin selector official b
Lemq;b()Lvf;
intermediary method_55387
Lnet/minecraft/class_9011;method_55387()Lnet/minecraft/class_2561;
named name
Lnet/minecraft/scoreboard/ScoreboardEntry;name()Lnet/minecraft/text/Text;
-
formatted
- Mappings:
Namespace Name Mixin selector official a
Lemq;a(Lwv;)Lvt;
intermediary method_55386
Lnet/minecraft/class_9011;method_55386(Lnet/minecraft/class_9022;)Lnet/minecraft/class_5250;
named formatted
Lnet/minecraft/scoreboard/ScoreboardEntry;formatted(Lnet/minecraft/scoreboard/number/NumberFormat;)Lnet/minecraft/text/MutableText;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
owner
Returns the value of theowner
record component.- Returns:
- the value of the
owner
record component
-
value
public int value()Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
display
Returns the value of thedisplay
record component.- Returns:
- the value of the
display
record component
-
numberFormatOverride
Returns the value of thenumberFormatOverride
record component.- Returns:
- the value of the
numberFormatOverride
record component