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$Packed
intermediary net/minecraft/class_273$class_10745
official fjy$a
named objectives
intermediary comp_3665
official b
named scores
intermediary comp_3666
official c
named displaySlots
intermediary comp_3667
official d
named teams
intermediary comp_3668
official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ScoreboardState.Packed> private final Map
<ScoreboardDisplaySlot, String> The field for thedisplaySlots
record component.private final List
<ScoreboardObjective.Packed> The field for theobjectives
record component.private final List
<Scoreboard.PackedEntry> The field for thescores
record component.private final List
<Team.Packed> The field for theteams
record 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 thedisplaySlots
record component.final 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 theobjectives
record component.scores()
Returns the value of thescores
record component.teams()
Returns the value of theteams
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
objectives
The field for theobjectives
record component. -
scores
The field for thescores
record component. -
displaySlots
The field for thedisplaySlots
record component. -
teams
The field for theteams
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/scoreboard/ScoreboardState$Packed;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56485
Lnet/minecraft/class_273$class_10745;field_56485:Lcom/mojang/serialization/Codec;
official a
Lfjy$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 theobjectives
record component.- Returns:
- the value of the
objectives
record component
-
scores
Returns the value of thescores
record component.- Returns:
- the value of the
scores
record component
-
displaySlots
Returns the value of thedisplaySlots
record component.- Returns:
- the value of the
displaySlots
record component
-
teams
Returns the value of theteams
record component.- Returns:
- the value of the
teams
record component
-