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.class_12223 score)
extends Record
- Mappings:
Namespace Name named net/minecraft/scoreboard/Scoreboard$PackedEntryintermediary net/minecraft/class_269$class_10744official fsi$anamed ownerintermediary comp_3662official bnamed objectiveintermediary comp_3663official cnamed scoreintermediary comp_3664official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Scoreboard.PackedEntry> private final StringThe field for theobjectiverecord component.private final StringThe field for theownerrecord component.private final ScoreboardScore.class_12223The field for thescorerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPackedEntry(String owner, String objective, ScoreboardScore.class_12223 score) Creates an instance of aPackedEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theobjectiverecord component.owner()Returns the value of theownerrecord component.score()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
owner
The field for theownerrecord component. -
objective
The field for theobjectiverecord component. -
score
The field for thescorerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/scoreboard/Scoreboard$PackedEntry;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56484Lnet/minecraft/class_269$class_10744;field_56484:Lcom/mojang/serialization/Codec;official aLfsi$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 theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
objective
Returns the value of theobjectiverecord component.- Returns:
- the value of the
objectiverecord component
-
score
Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-