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$Packed
intermediary net/minecraft/class_268$class_10743
official fhc$a
named name
intermediary comp_3651
official b
named displayName
intermediary comp_3652
official c
named color
intermediary comp_3653
official d
named allowFriendlyFire
intermediary comp_3654
official e
named seeFriendlyInvisibles
intermediary comp_3655
official f
named memberNamePrefix
intermediary comp_3656
official g
named memberNameSuffix
intermediary comp_3657
official h
named nameTagVisibility
intermediary comp_3658
official i
named deathMessageVisibility
intermediary comp_3659
official j
named collisionRule
intermediary comp_3660
official k
named players
intermediary comp_3661
official l
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
The field for theallowFriendlyFire
record component.static final com.mojang.serialization.Codec
<Team.Packed> private final AbstractTeam.CollisionRule
The field for thecollisionRule
record component.private final Optional
<Formatting> The field for thecolor
record component.private final AbstractTeam.VisibilityRule
The field for thedeathMessageVisibility
record component.The field for thedisplayName
record component.private final Text
The field for thememberNamePrefix
record component.private final Text
The field for thememberNameSuffix
record component.private final String
The field for thename
record component.private final AbstractTeam.VisibilityRule
The field for thenameTagVisibility
record component.The field for theplayers
record component.private final boolean
The field for theseeFriendlyInvisibles
record 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 TypeMethodDescriptionboolean
Returns the value of theallowFriendlyFire
record component.Returns the value of thecollisionRule
record component.color()
Returns the value of thecolor
record component.Returns the value of thedeathMessageVisibility
record component.Returns the value of thedisplayName
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 thememberNamePrefix
record component.Returns the value of thememberNameSuffix
record component.name()
Returns the value of thename
record component.Returns the value of thenameTagVisibility
record component.players()
Returns the value of theplayers
record component.boolean
Returns the value of theseeFriendlyInvisibles
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
name
The field for thename
record component. -
displayName
The field for thedisplayName
record component. -
color
The field for thecolor
record component. -
allowFriendlyFire
private final boolean allowFriendlyFireThe field for theallowFriendlyFire
record component. -
seeFriendlyInvisibles
private final boolean seeFriendlyInvisiblesThe field for theseeFriendlyInvisibles
record component. -
memberNamePrefix
The field for thememberNamePrefix
record component. -
memberNameSuffix
The field for thememberNameSuffix
record component. -
nameTagVisibility
The field for thenameTagVisibility
record component. -
deathMessageVisibility
The field for thedeathMessageVisibility
record component. -
collisionRule
The field for thecollisionRule
record component. -
players
The field for theplayers
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/scoreboard/Team$Packed;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56482
Lnet/minecraft/class_268$class_10743;field_56482:Lcom/mojang/serialization/Codec;
official a
Lfhc$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 thename
record component.- Returns:
- the value of the
name
record component
-
displayName
Returns the value of thedisplayName
record component.- Returns:
- the value of the
displayName
record component
-
color
Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-
allowFriendlyFire
public boolean allowFriendlyFire()Returns the value of theallowFriendlyFire
record component.- Returns:
- the value of the
allowFriendlyFire
record component
-
seeFriendlyInvisibles
public boolean seeFriendlyInvisibles()Returns the value of theseeFriendlyInvisibles
record component.- Returns:
- the value of the
seeFriendlyInvisibles
record component
-
memberNamePrefix
Returns the value of thememberNamePrefix
record component.- Returns:
- the value of the
memberNamePrefix
record component
-
memberNameSuffix
Returns the value of thememberNameSuffix
record component.- Returns:
- the value of the
memberNameSuffix
record component
-
nameTagVisibility
Returns the value of thenameTagVisibility
record component.- Returns:
- the value of the
nameTagVisibility
record component
-
deathMessageVisibility
Returns the value of thedeathMessageVisibility
record component.- Returns:
- the value of the
deathMessageVisibility
record component
-
collisionRule
Returns the value of thecollisionRule
record component.- Returns:
- the value of the
collisionRule
record component
-
players
Returns the value of theplayers
record component.- Returns:
- the value of the
players
record component
-