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 Details Link icon

    • name Link icon

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

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

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

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

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

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

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

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

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

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

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

      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 Lfhc$a;a:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

  • Method Details Link icon

    • toString Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

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

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

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

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

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

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

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

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

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

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