Class TeamS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.TeamS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/TeamS2CPacket
intermediary net/minecraft/class_5900
official afa
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
ThepacketType
that creates a new team with a few players.private static final int
ThepacketType
that adds a few players to a team.static final PacketCodec
<RegistryByteBuf, TeamS2CPacket> private static final int
One of the name tag visibility rule or collision rule strings' max length.private final int
Indicates the type of this packet.private final Collection
<String> private static final int
ThepacketType
that removes a team.private static final int
ThepacketType
that removes a few players from a team.private static final int
One of the name tag visibility rule or collision rule strings' max length.private final Optional
<TeamS2CPacket.SerializableTeam> private final String
private static final int
ThepacketType
that updates a team's information. -
Constructor Summary
ModifierConstructorDescriptionprivate
TeamS2CPacket
(String teamName, int packetType, Optional<TeamS2CPacket.SerializableTeam> team, Collection<String> playerNames) private
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) static TeamS2CPacket
changePlayerTeam
(Team team, String playerName, TeamS2CPacket.Operation operation) private static boolean
containsPlayers
(int packetType) private static boolean
containsTeamInfo
(int packetType) getTeam()
static TeamS2CPacket
updateRemovedTeam
(Team team) static TeamS2CPacket
updateTeam
(Team team, boolean updatePlayers) private void
write
(RegistryByteBuf buf) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
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
Lafa;a:Lys;
-
ADD
private static final int ADDThepacketType
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
Lafa;b:I
-
REMOVE
private static final int REMOVEThepacketType
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
Lafa;c:I
-
UPDATE
private static final int UPDATEThepacketType
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
Lafa;d:I
-
ADD_PLAYERS
private static final int ADD_PLAYERSThepacketType
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
Lafa;e:I
-
REMOVE_PLAYERS
private static final int REMOVE_PLAYERSThepacketType
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
Lafa;f:I
-
FIRST_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH
private static final int FIRST_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTHOne 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
Lafa;g:I
-
SECOND_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH
private static final int SECOND_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTHOne 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
Lafa;h:I
-
packetType
private final int packetType- 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
Lafa;i:I
-
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
Lafa;j:Ljava/lang/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
Lafa;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
Lafa;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>
Lafa;<init>(Ljava/lang/String;ILjava/util/Optional;Ljava/util/Collection;)V
-
TeamS2CPacket
- 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>
Lafa;<init>(Lwf;)V
-
-
Method Details
-
updateTeam
- 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
Lafa;a(Lexg;Z)Lafa;
-
updateRemovedTeam
- 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
Lafa;a(Lexg;)Lafa;
-
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
Lafa;a(Lexg;Ljava/lang/String;Lafa$a;)Lafa;
-
write
- 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
Lafa;a(Lwf;)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
Lafa;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
Lafa;b(I)Z
-
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
Lafa;b()Lafa$a;
-
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
Lafa;e()Lafa$a;
-
getPacketId
- Specified by:
getPacketId
in interfacePacket<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
Lzb;a()Lzd;
-
apply
- Specified by:
apply
in interfacePacket<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
Lafa;a(Labn;)V
-
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
Lafa;f()Ljava/lang/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
Lafa;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
Lafa;h()Ljava/util/Optional;
-