Class TeamS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.TeamS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official xt
intermediary net/minecraft/class_5900
named net/minecraft/network/packet/s2c/play/TeamS2CPacket
-
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.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) -
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) void
write
(PacketByteBuf 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
isWritingErrorSkippable
-
Field Details
-
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 official a
Lxt;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 REMOVEThepacketType
that removes a team. Has value 1.- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lxt;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 UPDATEThepacketType
that updates a team's information. Has value 2.- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lxt;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_PLAYERSThepacketType
that adds a few players to a team. Has value 3.- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lxt;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_PLAYERSThepacketType
that removes a few players from a team. Has value 4.- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lxt;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_LENGTHOne of the name tag visibility rule or collision rule strings' max length. Has value 40.- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lxt;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_LENGTHOne of the name tag visibility rule or collision rule strings' max length. Has value 40.- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lxt;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- Mappings:
Namespace Name Mixin selector official h
Lxt;h:I
intermediary field_29151
Lnet/minecraft/class_5900;field_29151:I
named packetType
Lnet/minecraft/network/packet/s2c/play/TeamS2CPacket;packetType:I
-
teamName
- Mappings:
Namespace Name Mixin selector official i
Lxt;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
- Mappings:
Namespace Name Mixin selector official j
Lxt;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
Lxt;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>
Lxt;<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
- Mappings:
Namespace Name Mixin selector official <init>
Lxt;<init>(Lsd;)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
- Mappings:
Namespace Name Mixin selector official a
Lxt;a(Leba;Z)Lxt;
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
- Mappings:
Namespace Name Mixin selector official a
Lxt;a(Leba;)Lxt;
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
Lxt;a(Leba;Ljava/lang/String;Lxt$a;)Lxt;
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
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Luh;a(Lsd;)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
Lxt;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
Lxt;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
- Mappings:
Namespace Name Mixin selector official b
Lxt;b()Lxt$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
- Mappings:
Namespace Name Mixin selector official c
Lxt;c()Lxt$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
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lxt;a(Luk;)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
- Mappings:
Namespace Name Mixin selector official d
Lxt;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
- Mappings:
Namespace Name Mixin selector official e
Lxt;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
Lxt;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;
-