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
official tw
intermediary net/minecraft/class_5900
named net/minecraft/network/packet/s2c/play/TeamS2CPacket
  • Field Details

    • 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
      official a Ltw;a:I
      intermediary field_33346 Lnet/minecraft/class_5900;field_33346:I
      named ADD Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;ADD:I
    • REMOVE

      private static final int REMOVE
      The packetType that removes a team. Has value 1.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Ltw;b:I
      intermediary field_33347 Lnet/minecraft/class_5900;field_33347:I
      named REMOVE Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;REMOVE: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
      official c Ltw;c:I
      intermediary field_33348 Lnet/minecraft/class_5900;field_33348:I
      named UPDATE Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;UPDATE: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
      official d Ltw;d:I
      intermediary field_33349 Lnet/minecraft/class_5900;field_33349:I
      named ADD_PLAYERS Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;ADD_PLAYERS: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
      official e Ltw;e:I
      intermediary field_33350 Lnet/minecraft/class_5900;field_33350:I
      named REMOVE_PLAYERS Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;REMOVE_PLAYERS: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
      official f Ltw;f:I
      intermediary field_33351 Lnet/minecraft/class_5900;field_33351:I
      named FIRST_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;FIRST_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH: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
      official g Ltw;g:I
      intermediary field_33352 Lnet/minecraft/class_5900;field_33352:I
      named SECOND_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;SECOND_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH: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
      official h Ltw;h:I
      intermediary field_29151 Lnet/minecraft/class_5900;field_29151:I
      named packetType Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;packetType:I
    • teamName

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

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

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

    • TeamS2CPacket

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

      public TeamS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ltw;<init>(Lph;)V
      intermediary <init> Lnet/minecraft/class_5900;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • updateTeam

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

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

      public static TeamS2CPacket changePlayerTeam(Team team, String playerName, TeamS2CPacket.Operation operation)
      Mappings:
      Namespace Name Mixin selector
      official a Ltw;a(Ldov;Ljava/lang/String;Ltw$a;)Ltw;
      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;
      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;
    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lql;a(Lph;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • containsPlayers

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

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

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

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

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

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

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

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