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 fjs$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 Details

    • name

      private final String name
      The field for the name record component.
    • displayName

      private final Optional<Text> displayName
      The field for the displayName record component.
    • color

      private final Optional<Formatting> color
      The field for the color record component.
    • allowFriendlyFire

      private final boolean allowFriendlyFire
      The field for the allowFriendlyFire record component.
    • seeFriendlyInvisibles

      private final boolean seeFriendlyInvisibles
      The field for the seeFriendlyInvisibles record component.
    • memberNamePrefix

      private final Text memberNamePrefix
      The field for the memberNamePrefix record component.
    • memberNameSuffix

      private final Text memberNameSuffix
      The field for the memberNameSuffix record component.
    • nameTagVisibility

      private final AbstractTeam.VisibilityRule nameTagVisibility
      The field for the nameTagVisibility record component.
    • deathMessageVisibility

      private final AbstractTeam.VisibilityRule deathMessageVisibility
      The field for the deathMessageVisibility record component.
    • collisionRule

      private final AbstractTeam.CollisionRule collisionRule
      The field for the collisionRule record component.
    • players

      private final List<String> players
      The field for the players record component.
    • CODEC

      public static final com.mojang.serialization.Codec<Team.Packed> 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 Lfjs$a;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • displayName

      public Optional<Text> displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • color

      public Optional<Formatting> color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • allowFriendlyFire

      public boolean allowFriendlyFire()
      Returns the value of the allowFriendlyFire record component.
      Returns:
      the value of the allowFriendlyFire record component
    • seeFriendlyInvisibles

      public boolean seeFriendlyInvisibles()
      Returns the value of the seeFriendlyInvisibles record component.
      Returns:
      the value of the seeFriendlyInvisibles record component
    • memberNamePrefix

      public Text memberNamePrefix()
      Returns the value of the memberNamePrefix record component.
      Returns:
      the value of the memberNamePrefix record component
    • memberNameSuffix

      public Text memberNameSuffix()
      Returns the value of the memberNameSuffix record component.
      Returns:
      the value of the memberNameSuffix record component
    • nameTagVisibility

      public AbstractTeam.VisibilityRule nameTagVisibility()
      Returns the value of the nameTagVisibility record component.
      Returns:
      the value of the nameTagVisibility record component
    • deathMessageVisibility

      public AbstractTeam.VisibilityRule deathMessageVisibility()
      Returns the value of the deathMessageVisibility record component.
      Returns:
      the value of the deathMessageVisibility record component
    • collisionRule

      public AbstractTeam.CollisionRule collisionRule()
      Returns the value of the collisionRule record component.
      Returns:
      the value of the collisionRule record component
    • players

      public List<String> players()
      Returns the value of the players record component.
      Returns:
      the value of the players record component