Class ClientboundSetPlayerTeamPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundSetPlayerTeamPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private final int
private static final int
private static final int
private static final int
private static final int
private static final int
private final String
private final Optional
<ClientboundSetPlayerTeamPacket.Parameters> private final Collection
<String> static final StreamCodec
<RegistryFriendlyByteBuf, ClientboundSetPlayerTeamPacket> -
Constructor Summary
ModifierConstructorDescriptionprivate
ClientboundSetPlayerTeamPacket
(String p_179318_, int p_179319_, Optional<ClientboundSetPlayerTeamPacket.Parameters> p_179320_, Collection<String> p_179321_) private
-
Method Summary
Modifier and TypeMethodDescriptioncreateAddOrModifyPacket
(PlayerTeam p_179333_, boolean p_179334_) createPlayerPacket
(PlayerTeam p_179329_, String p_179330_, ClientboundSetPlayerTeamPacket.Action p_179331_) createRemovePacket
(PlayerTeam p_179327_) getName()
void
handle
(ClientGamePacketListener p_133310_) private static boolean
shouldHaveParameters
(int p_179337_) private static boolean
shouldHavePlayerList
(int p_179325_) type()
private void
write
(RegistryFriendlyByteBuf p_323648_) 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.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf,ClientboundSetPlayerTeamPacket> STREAM_CODEC -
METHOD_ADD
private static final int METHOD_ADD- See Also:
-
METHOD_REMOVE
private static final int METHOD_REMOVE- See Also:
-
METHOD_CHANGE
private static final int METHOD_CHANGE- See Also:
-
METHOD_JOIN
private static final int METHOD_JOIN- See Also:
-
METHOD_LEAVE
private static final int METHOD_LEAVE- See Also:
-
MAX_VISIBILITY_LENGTH
private static final int MAX_VISIBILITY_LENGTH- See Also:
-
MAX_COLLISION_LENGTH
private static final int MAX_COLLISION_LENGTH- See Also:
-
method
private final int method -
name
-
players
-
parameters
-
-
Constructor Details
-
ClientboundSetPlayerTeamPacket
private ClientboundSetPlayerTeamPacket(String p_179318_, int p_179319_, Optional<ClientboundSetPlayerTeamPacket.Parameters> p_179320_, Collection<String> p_179321_) -
ClientboundSetPlayerTeamPacket
-
-
Method Details
-
createAddOrModifyPacket
public static ClientboundSetPlayerTeamPacket createAddOrModifyPacket(PlayerTeam p_179333_, boolean p_179334_) -
createRemovePacket
-
createPlayerPacket
public static ClientboundSetPlayerTeamPacket createPlayerPacket(PlayerTeam p_179329_, String p_179330_, ClientboundSetPlayerTeamPacket.Action p_179331_) -
write
-
shouldHavePlayerList
private static boolean shouldHavePlayerList(int p_179325_) -
shouldHaveParameters
private static boolean shouldHaveParameters(int p_179337_) -
getPlayerAction
-
getTeamAction
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getName
-
getPlayers
-
getParameters
-