Package net.minecraft.scoreboard
Record Class Team.Packed
java.lang.Object
java.lang.Record
net.minecraft.scoreboard.Team.Packed
- Record Components:
name-displayName-color-allowFriendlyFire-seeFriendlyInvisibles-memberNamePrefix-memberNameSuffix-nameTagVisibility-deathMessageVisibility-collisionRule-players-
- Enclosing class:
Team
public static record Team.Packed(String name, Optional<Text> displayName, Optional<Formatting> color, boolean allowFriendlyFire, boolean seeFriendlyInvisibles, Text memberNamePrefix, Text memberNameSuffix, AbstractTeam.VisibilityRule nameTagVisibility, AbstractTeam.VisibilityRule deathMessageVisibility, AbstractTeam.CollisionRule collisionRule, List<String> players)
extends Record
- Mappings:
Namespace Name named net/minecraft/scoreboard/Team$Packedintermediary net/minecraft/class_268$class_10743official fhc$anamed nameintermediary comp_3651official bnamed displayNameintermediary comp_3652official cnamed colorintermediary comp_3653official dnamed allowFriendlyFireintermediary comp_3654official enamed seeFriendlyInvisiblesintermediary comp_3655official fnamed memberNamePrefixintermediary comp_3656official gnamed memberNameSuffixintermediary comp_3657official hnamed nameTagVisibilityintermediary comp_3658official inamed deathMessageVisibilityintermediary comp_3659official jnamed collisionRuleintermediary comp_3660official knamed playersintermediary comp_3661official l
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theallowFriendlyFirerecord component.static final com.mojang.serialization.Codec<Team.Packed> private final AbstractTeam.CollisionRuleThe field for thecollisionRulerecord component.private final Optional<Formatting> The field for thecolorrecord component.private final AbstractTeam.VisibilityRuleThe field for thedeathMessageVisibilityrecord component.The field for thedisplayNamerecord component.private final TextThe field for thememberNamePrefixrecord component.private final TextThe field for thememberNameSuffixrecord component.private final StringThe field for thenamerecord component.private final AbstractTeam.VisibilityRuleThe field for thenameTagVisibilityrecord component.The field for theplayersrecord component.private final booleanThe field for theseeFriendlyInvisiblesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPacked(String string, Optional<Text> optional, Optional<Formatting> optional2, boolean bool, boolean bool2, Text text, Text text2, AbstractTeam.VisibilityRule visibilityRule, AbstractTeam.VisibilityRule visibilityRule2, AbstractTeam.CollisionRule collisionRule, List<String> list) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowFriendlyFirerecord component.Returns the value of thecollisionRulerecord component.color()Returns the value of thecolorrecord component.Returns the value of thedeathMessageVisibilityrecord component.Returns the value of thedisplayNamerecord 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 thememberNamePrefixrecord component.Returns the value of thememberNameSuffixrecord component.name()Returns the value of thenamerecord component.Returns the value of thenameTagVisibilityrecord component.players()Returns the value of theplayersrecord component.booleanReturns the value of theseeFriendlyInvisiblesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
displayName
The field for thedisplayNamerecord component. -
color
The field for thecolorrecord component. -
allowFriendlyFire
private final boolean allowFriendlyFireThe field for theallowFriendlyFirerecord component. -
seeFriendlyInvisibles
private final boolean seeFriendlyInvisiblesThe field for theseeFriendlyInvisiblesrecord component. -
memberNamePrefix
The field for thememberNamePrefixrecord component. -
memberNameSuffix
The field for thememberNameSuffixrecord component. -
nameTagVisibility
The field for thenameTagVisibilityrecord component. -
deathMessageVisibility
The field for thedeathMessageVisibilityrecord component. -
collisionRule
The field for thecollisionRulerecord component. -
players
The field for theplayersrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/scoreboard/Team$Packed;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56482Lnet/minecraft/class_268$class_10743;field_56482:Lcom/mojang/serialization/Codec;official aLfhc$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Packed
public Packed(String string, Optional<Text> optional, Optional<Formatting> optional2, boolean bool, boolean bool2, Text text, Text text2, AbstractTeam.VisibilityRule visibilityRule, AbstractTeam.VisibilityRule visibilityRule2, AbstractTeam.CollisionRule collisionRule, List<String> list)
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
allowFriendlyFire
public boolean allowFriendlyFire()Returns the value of theallowFriendlyFirerecord component.- Returns:
- the value of the
allowFriendlyFirerecord component
-
seeFriendlyInvisibles
public boolean seeFriendlyInvisibles()Returns the value of theseeFriendlyInvisiblesrecord component.- Returns:
- the value of the
seeFriendlyInvisiblesrecord component
-
memberNamePrefix
Returns the value of thememberNamePrefixrecord component.- Returns:
- the value of the
memberNamePrefixrecord component
-
memberNameSuffix
Returns the value of thememberNameSuffixrecord component.- Returns:
- the value of the
memberNameSuffixrecord component
-
nameTagVisibility
Returns the value of thenameTagVisibilityrecord component.- Returns:
- the value of the
nameTagVisibilityrecord component
-
deathMessageVisibility
Returns the value of thedeathMessageVisibilityrecord component.- Returns:
- the value of the
deathMessageVisibilityrecord component
-
collisionRule
Returns the value of thecollisionRulerecord component.- Returns:
- the value of the
collisionRulerecord component
-
players
Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-