Package net.minecraft.scoreboard
Record Class Scoreboard.PackedEntry
java.lang.Object
java.lang.Record
net.minecraft.scoreboard.Scoreboard.PackedEntry
- Record Components:
owner
-objective
-score
-
- Enclosing class:
Scoreboard
public static record Scoreboard.PackedEntry(String owner, String objective, ScoreboardScore score)
extends Record
- Mappings:
Namespace Name named net/minecraft/scoreboard/Scoreboard$PackedEntry
intermediary net/minecraft/class_269$class_10744
official fhh$a
named owner
intermediary comp_3662
official b
named objective
intermediary comp_3663
official c
named score
intermediary comp_3664
official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Scoreboard.PackedEntry> private final String
The field for theobjective
record component.private final String
The field for theowner
record component.private final ScoreboardScore
The field for thescore
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theobjective
record component.owner()
Returns the value of theowner
record component.score()
Returns the value of thescore
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
owner
The field for theowner
record component. -
objective
The field for theobjective
record component. -
score
The field for thescore
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/scoreboard/Scoreboard$PackedEntry;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56484
Lnet/minecraft/class_269$class_10744;field_56484:Lcom/mojang/serialization/Codec;
official a
Lfhh$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
owner
Returns the value of theowner
record component.- Returns:
- the value of the
owner
record component
-
objective
Returns the value of theobjective
record component.- Returns:
- the value of the
objective
record component
-
score
Returns the value of thescore
record component.- Returns:
- the value of the
score
record component
-