net.minecraft.network.protocol.game

public class ClientboundSetPlayerTeamPacket

implements Packet<ClientGamePacketListener>

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

Field summary

Modifier and TypeField
public static final StreamCodec<RegistryFriendlyByteBuf, ClientboundSetPlayerTeamPacket>
a
STREAM_CODEC
field_47987
CODEC
private static final int
b
METHOD_ADD
field_33346
ADD
private static final int
c
METHOD_REMOVE
field_33347
REMOVE
private static final int
d
METHOD_CHANGE
field_33348
UPDATE
private static final int
e
METHOD_JOIN
field_33349
ADD_PLAYERS
private static final int
f
METHOD_LEAVE
field_33350
REMOVE_PLAYERS
private static final int
g
MAX_VISIBILITY_LENGTH
field_33351
FIRST_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH
private static final int
h
MAX_COLLISION_LENGTH
field_33352
SECOND_MAX_VISIBILITY_OR_COLLISION_RULE_LENGTH
private final int
i
method
field_29151
packetType
private final String
j
name
field_29152
teamName
private final Collection<String>
k
players
field_29153
playerNames
private final Optional<ClientboundSetPlayerTeamPacket$Parameters>
l
parameters
field_29154
team

Constructor summary

ModifierConstructor
private (String teamName, int packetType, Optional<ClientboundSetPlayerTeamPacket$Parameters> team, Collection<String> playerNames)
private (RegistryFriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
public static ClientboundSetPlayerTeamPacket
a(fcy arg0, boolean arg1)
createAddOrModifyPacket(PlayerTeam arg0, boolean arg1)
method_34172(class_268 arg0, boolean arg1)
updateTeam(Team team, boolean updatePlayers)
public static ClientboundSetPlayerTeamPacket
a(fcy arg0)
createRemovePacket(PlayerTeam arg0)
method_34170(class_268 arg0)
updateRemovedTeam(Team team)
public static ClientboundSetPlayerTeamPacket
a(fcy arg0, String arg1, agl$a arg2)
createPlayerPacket(PlayerTeam arg0, String arg1, ClientboundSetPlayerTeamPacket$Action arg2)
method_34171(class_268 arg0, String arg1, class_5900$class_5901 arg2)
changePlayerTeam(Team team, String playerName, TeamS2CPacket$Operation operation)
private void
a(xg arg0)
write(RegistryFriendlyByteBuf arg0)
method_55934(class_9129 arg0)
write(RegistryByteBuf buf)
private static boolean
a(int arg0)
shouldHavePlayerList(int arg0)
method_34169(int arg0)
containsPlayers(int packetType)
private static boolean
b(int arg0)
shouldHaveParameters(int arg0)
method_34175(int arg0)
containsTeamInfo(int packetType)
public ClientboundSetPlayerTeamPacket$Action
b()
getPlayerAction()
method_34174()
getPlayerListOperation()
public ClientboundSetPlayerTeamPacket$Action
e()
getTeamAction()
method_34176()
getTeamOperation()
public PacketType<ClientboundSetPlayerTeamPacket>
a()
type()
method_55846()
getPacketId()
public void
a(acr arg0)
handle(ClientGamePacketListener arg0)
method_34173(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public String
f()
getName()
method_34177()
getTeamName()
public Collection<String>
g()
getPlayers()
method_34178()
getPlayerNames()
public Optional<ClientboundSetPlayerTeamPacket$Parameters>
h()
getParameters()
method_34179()
getTeam()