net.minecraft.network.packet.s2c.play

public class TeamS2CPacket

implements Packet<ClientPlayPacketListener>

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket
net.minecraft.class_5900
net.minecraft.network.packet.s2c.play.TeamS2CPacket

Field summary

Modifier and TypeField
public static final PacketCodec<RegistryByteBuf, TeamS2CPacket>
STREAM_CODEC
field_47987
CODEC
private static final int
METHOD_ADD
field_33346
ADD
private static final int
METHOD_REMOVE
field_33347
REMOVE
private static final int
METHOD_CHANGE
field_33348
UPDATE
private static final int
METHOD_JOIN
field_33349
ADD_PLAYERS
private static final int
METHOD_LEAVE
field_33350
REMOVE_PLAYERS
private static final int
MAX_VISIBILITY_LENGTH
field_33351
FIRST_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH
private static final int
MAX_COLLISION_LENGTH
field_33352
SECOND_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH
private final int
method
field_29151
packetType
private final String
name
field_29152
teamName
private final Collection<String>
players
field_29153
playerNames
private final Optional<TeamS2CPacket$SerializableTeam>
parameters
field_29154
team

Constructor summary

ModifierConstructor
private (String teamName, int packetType, Optional<TeamS2CPacket$SerializableTeam> team, Collection<String> playerNames)
private (RegistryByteBuf buf)

Method summary

Modifier and TypeMethod
public static TeamS2CPacket
createAddOrModifyPacket(PlayerTeam team, boolean createNew)
method_34172(class_268 arg0, boolean arg1)
updateTeam(Team team, boolean updatePlayers)
public static TeamS2CPacket
createRemovePacket(PlayerTeam team)
method_34170(class_268 arg0)
updateRemovedTeam(Team team)
public static TeamS2CPacket
createPlayerPacket(PlayerTeam team, String player, ClientboundSetPlayerTeamPacket$Action action)
method_34171(class_268 arg0, String arg1, class_5900$class_5901 arg2)
changePlayerTeam(Team team, String playerName, TeamS2CPacket$Operation operation)
private void
write(RegistryFriendlyByteBuf output)
method_55934(class_9129 arg0)
write(RegistryByteBuf buf)
private static boolean
shouldHavePlayerList(int method)
method_34169(int arg0)
containsPlayers(int packetType)
private static boolean
shouldHaveParameters(int method)
method_34175(int arg0)
containsTeamInfo(int packetType)
public TeamS2CPacket$Operation
getPlayerAction()
method_34174()
getPlayerListOperation()
public TeamS2CPacket$Operation
getTeamAction()
method_34176()
getTeamOperation()
public PacketType<TeamS2CPacket>
type()
method_65080()
getPacketType()
public void
handle(ClientGamePacketListener listener)
method_34173(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public String
getName()
method_34177()
getTeamName()
public Collection<String>
getPlayers()
method_34178()
getPlayerNames()
public Optional<TeamS2CPacket$SerializableTeam>
getParameters()
method_34179()
getTeam()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)
private IllegalStateException
lambda$write$0()
method_34180()
method_34180()