Class TeamS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.TeamS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class TeamS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
named net/minecraft/network/packet/s2c/play/TeamS2CPacket
intermediary net/minecraft/class_5900
official agl
  • Field Details

    • CODEC

      public static final PacketCodec<RegistryByteBuf,TeamS2CPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_47987 Lnet/minecraft/class_5900;field_47987:Lnet/minecraft/class_9139;
      official a Lagl;a:Lzt;
    • ADD

      private static final int ADD
      The packetType that creates a new team with a few players. Has value 0.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ADD Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;ADD:I
      intermediary field_33346 Lnet/minecraft/class_5900;field_33346:I
      official b Lagl;b:I
    • REMOVE

      private static final int REMOVE
      The packetType that removes a team. Has value 1.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named REMOVE Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;REMOVE:I
      intermediary field_33347 Lnet/minecraft/class_5900;field_33347:I
      official c Lagl;c:I
    • UPDATE

      private static final int UPDATE
      The packetType that updates a team's information. Has value 2.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named UPDATE Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;UPDATE:I
      intermediary field_33348 Lnet/minecraft/class_5900;field_33348:I
      official d Lagl;d:I
    • ADD_PLAYERS

      private static final int ADD_PLAYERS
      The packetType that adds a few players to a team. Has value 3.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ADD_PLAYERS Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;ADD_PLAYERS:I
      intermediary field_33349 Lnet/minecraft/class_5900;field_33349:I
      official e Lagl;e:I
    • REMOVE_PLAYERS

      private static final int REMOVE_PLAYERS
      The packetType that removes a few players from a team. Has value 4.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named REMOVE_PLAYERS Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;REMOVE_PLAYERS:I
      intermediary field_33350 Lnet/minecraft/class_5900;field_33350:I
      official f Lagl;f:I
    • FIRST_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH

      private static final int FIRST_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH
      One of the name tag visibility rule or collision rule strings' max length. Has value 40.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FIRST_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;FIRST_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH:I
      intermediary field_33351 Lnet/minecraft/class_5900;field_33351:I
      official g Lagl;g:I
    • SECOND_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH

      private static final int SECOND_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH
      One of the name tag visibility rule or collision rule strings' max length. Has value 40.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SECOND_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;SECOND_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH:I
      intermediary field_33352 Lnet/minecraft/class_5900;field_33352:I
      official h Lagl;h:I
    • packetType

      private final int packetType
      Indicates the type of this packet. Is one of ADD, REMOVE, UPDATE, ADD_PLAYERS, or REMOVE_PLAYERS.
      Mappings:
      Namespace Name Mixin selector
      named packetType Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;packetType:I
      intermediary field_29151 Lnet/minecraft/class_5900;field_29151:I
      official i Lagl;i:I
    • teamName

      private final String teamName
      Mappings:
      Namespace Name Mixin selector
      named teamName Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;teamName:Ljava/lang/String;
      intermediary field_29152 Lnet/minecraft/class_5900;field_29152:Ljava/lang/String;
      official j Lagl;j:Ljava/lang/String;
    • playerNames

      private final Collection<String> playerNames
      Mappings:
      Namespace Name Mixin selector
      named playerNames Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;playerNames:Ljava/util/Collection;
      intermediary field_29153 Lnet/minecraft/class_5900;field_29153:Ljava/util/Collection;
      official k Lagl;k:Ljava/util/Collection;
    • team

      Mappings:
      Namespace Name Mixin selector
      named team Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;team:Ljava/util/Optional;
      intermediary field_29154 Lnet/minecraft/class_5900;field_29154:Ljava/util/Optional;
      official l Lagl;l:Ljava/util/Optional;
  • Constructor Details

    • TeamS2CPacket

      private TeamS2CPacket(String teamName, int packetType, Optional<TeamS2CPacket.SerializableTeam> team, Collection<String> playerNames)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;<init>(Ljava/lang/String;ILjava/util/Optional;Ljava/util/Collection;)V
      intermediary <init> Lnet/minecraft/class_5900;<init>(Ljava/lang/String;ILjava/util/Optional;Ljava/util/Collection;)V
      official <init> Lagl;<init>(Ljava/lang/String;ILjava/util/Optional;Ljava/util/Collection;)V
    • TeamS2CPacket

      private TeamS2CPacket(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;<init>(Lnet/minecraft/network/RegistryByteBuf;)V
      intermediary <init> Lnet/minecraft/class_5900;<init>(Lnet/minecraft/class_9129;)V
      official <init> Lagl;<init>(Lxg;)V
  • Method Details

    • updateTeam

      public static TeamS2CPacket updateTeam(Team team, boolean updatePlayers)
      Mappings:
      Namespace Name Mixin selector
      named updateTeam Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;updateTeam(Lnet/minecraft/scoreboard/Team;Z)Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;
      intermediary method_34172 Lnet/minecraft/class_5900;method_34172(Lnet/minecraft/class_268;Z)Lnet/minecraft/class_5900;
      official a Lagl;a(Lfcx;Z)Lagl;
    • updateRemovedTeam

      public static TeamS2CPacket updateRemovedTeam(Team team)
      Mappings:
      Namespace Name Mixin selector
      named updateRemovedTeam Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;updateRemovedTeam(Lnet/minecraft/scoreboard/Team;)Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;
      intermediary method_34170 Lnet/minecraft/class_5900;method_34170(Lnet/minecraft/class_268;)Lnet/minecraft/class_5900;
      official a Lagl;a(Lfcx;)Lagl;
    • changePlayerTeam

      public static TeamS2CPacket changePlayerTeam(Team team, String playerName, TeamS2CPacket.Operation operation)
      Mappings:
      Namespace Name Mixin selector
      named changePlayerTeam Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;changePlayerTeam(Lnet/minecraft/scoreboard/Team;Ljava/lang/String;Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket$Operation;)Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;
      intermediary method_34171 Lnet/minecraft/class_5900;method_34171(Lnet/minecraft/class_268;Ljava/lang/String;Lnet/minecraft/class_5900$class_5901;)Lnet/minecraft/class_5900;
      official a Lagl;a(Lfcx;Ljava/lang/String;Lagl$a;)Lagl;
    • write

      private void write(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;write(Lnet/minecraft/network/RegistryByteBuf;)V
      intermediary method_55934 Lnet/minecraft/class_5900;method_55934(Lnet/minecraft/class_9129;)V
      official a Lagl;a(Lxg;)V
    • containsPlayers

      private static boolean containsPlayers(int packetType)
      Mappings:
      Namespace Name Mixin selector
      named containsPlayers Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;containsPlayers(I)Z
      intermediary method_34169 Lnet/minecraft/class_5900;method_34169(I)Z
      official a Lagl;a(I)Z
    • containsTeamInfo

      private static boolean containsTeamInfo(int packetType)
      Mappings:
      Namespace Name Mixin selector
      named containsTeamInfo Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;containsTeamInfo(I)Z
      intermediary method_34175 Lnet/minecraft/class_5900;method_34175(I)Z
      official b Lagl;b(I)Z
    • getPlayerListOperation

      @Nullable public @Nullable TeamS2CPacket.Operation getPlayerListOperation()
      Mappings:
      Namespace Name Mixin selector
      named getPlayerListOperation Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;getPlayerListOperation()Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket$Operation;
      intermediary method_34174 Lnet/minecraft/class_5900;method_34174()Lnet/minecraft/class_5900$class_5901;
      official b Lagl;b()Lagl$a;
    • getTeamOperation

      @Nullable public @Nullable TeamS2CPacket.Operation getTeamOperation()
      Mappings:
      Namespace Name Mixin selector
      named getTeamOperation Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;getTeamOperation()Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket$Operation;
      intermediary method_34176 Lnet/minecraft/class_5900;method_34176()Lnet/minecraft/class_5900$class_5901;
      official e Lagl;e()Lagl$a;
    • getPacketId

      public PacketType<TeamS2CPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Laac;a()Laae;
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
      intermediary method_34173 Lnet/minecraft/class_5900;method_34173(Lnet/minecraft/class_2602;)V
      official a Lagl;a(Lacr;)V
    • getTeamName

      public String getTeamName()
      Mappings:
      Namespace Name Mixin selector
      named getTeamName Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;getTeamName()Ljava/lang/String;
      intermediary method_34177 Lnet/minecraft/class_5900;method_34177()Ljava/lang/String;
      official f Lagl;f()Ljava/lang/String;
    • getPlayerNames

      public Collection<String> getPlayerNames()
      Mappings:
      Namespace Name Mixin selector
      named getPlayerNames Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;getPlayerNames()Ljava/util/Collection;
      intermediary method_34178 Lnet/minecraft/class_5900;method_34178()Ljava/util/Collection;
      official g Lagl;g()Ljava/util/Collection;
    • getTeam

      Mappings:
      Namespace Name Mixin selector
      named getTeam Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;getTeam()Ljava/util/Optional;
      intermediary method_34179 Lnet/minecraft/class_5900;method_34179()Ljava/util/Optional;
      official h Lagl;h()Ljava/util/Optional;