Package net.minecraft.scoreboard
Record Class ScoreboardState.Packed
java.lang.Object
java.lang.Record
net.minecraft.scoreboard.ScoreboardState.Packed
- Record Components:
objectives-scores-displaySlots-teams-
- Enclosing class:
ScoreboardState
public static record ScoreboardState.Packed(List<ScoreboardObjective.Packed> objectives, List<Scoreboard.PackedEntry> scores, Map<ScoreboardDisplaySlot,String> displaySlots, List<Team.Packed> teams)
extends Record
- Mappings:
Namespace Name named net/minecraft/scoreboard/ScoreboardState$Packedintermediary net/minecraft/class_273$class_10745official fhi$anamed objectivesintermediary comp_3665official bnamed scoresintermediary comp_3666official cnamed displaySlotsintermediary comp_3667official dnamed teamsintermediary comp_3668official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ScoreboardState.Packed> private final Map<ScoreboardDisplaySlot, String> The field for thedisplaySlotsrecord component.private final List<ScoreboardObjective.Packed> The field for theobjectivesrecord component.private final List<Scoreboard.PackedEntry> The field for thescoresrecord component.private final List<Team.Packed> The field for theteamsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPacked(List<ScoreboardObjective.Packed> list, List<Scoreboard.PackedEntry> list2, Map<ScoreboardDisplaySlot, String> map, List<Team.Packed> list3) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplaySlotsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theobjectivesrecord component.scores()Returns the value of thescoresrecord component.teams()Returns the value of theteamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
objectives
The field for theobjectivesrecord component. -
scores
The field for thescoresrecord component. -
displaySlots
The field for thedisplaySlotsrecord component. -
teams
The field for theteamsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/scoreboard/ScoreboardState$Packed;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56485Lnet/minecraft/class_273$class_10745;field_56485:Lcom/mojang/serialization/Codec;official aLfhi$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Packed
public Packed(List<ScoreboardObjective.Packed> list, List<Scoreboard.PackedEntry> list2, Map<ScoreboardDisplaySlot, String> map, List<Team.Packed> list3)
-
-
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). -
objectives
Returns the value of theobjectivesrecord component.- Returns:
- the value of the
objectivesrecord component
-
scores
Returns the value of thescoresrecord component.- Returns:
- the value of the
scoresrecord component
-
displaySlots
Returns the value of thedisplaySlotsrecord component.- Returns:
- the value of the
displaySlotsrecord component
-
teams
Returns the value of theteamsrecord component.- Returns:
- the value of the
teamsrecord component
-