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 SummaryNested ClassesModifier and TypeClassDescriptionstatic enumstatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final Stringprivate final Optional<ClientboundSetPlayerTeamPacket.Parameters>private final Collection<String>
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateClientboundSetPlayerTeamPacket(String p_179318_, int p_179319_, Optional<ClientboundSetPlayerTeamPacket.Parameters> p_179320_, Collection<String> p_179321_) ClientboundSetPlayerTeamPacket(FriendlyByteBuf p_179323_) 
- 
Method SummaryModifier and TypeMethodDescriptioncreateAddOrModifyPacket(PlayerTeam p_179333_, boolean p_179334_) createPlayerPacket(PlayerTeam p_179329_, String p_179330_, ClientboundSetPlayerTeamPacket.Action p_179331_) createRemovePacket(PlayerTeam p_179327_) getName()voidhandle(ClientGamePacketListener p_133310_) private static booleanshouldHaveParameters(int p_179337_) private static booleanshouldHavePlayerList(int p_179325_) voidwrite(FriendlyByteBuf p_133313_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable, nextProtocol
- 
Field Details- 
METHOD_ADDprivate static final int METHOD_ADD- See Also:
 
- 
METHOD_REMOVEprivate static final int METHOD_REMOVE- See Also:
 
- 
METHOD_CHANGEprivate static final int METHOD_CHANGE- See Also:
 
- 
METHOD_JOINprivate static final int METHOD_JOIN- See Also:
 
- 
METHOD_LEAVEprivate static final int METHOD_LEAVE- See Also:
 
- 
MAX_VISIBILITY_LENGTHprivate static final int MAX_VISIBILITY_LENGTH- See Also:
 
- 
MAX_COLLISION_LENGTHprivate static final int MAX_COLLISION_LENGTH- See Also:
 
- 
methodprivate final int method
- 
name
- 
players
- 
parameters
 
- 
- 
Constructor Details- 
ClientboundSetPlayerTeamPacketprivate ClientboundSetPlayerTeamPacket(String p_179318_, int p_179319_, Optional<ClientboundSetPlayerTeamPacket.Parameters> p_179320_, Collection<String> p_179321_) 
- 
ClientboundSetPlayerTeamPacket
 
- 
- 
Method Details- 
createAddOrModifyPacketpublic static ClientboundSetPlayerTeamPacket createAddOrModifyPacket(PlayerTeam p_179333_, boolean p_179334_) 
- 
createRemovePacket
- 
createPlayerPacketpublic static ClientboundSetPlayerTeamPacket createPlayerPacket(PlayerTeam p_179329_, String p_179330_, ClientboundSetPlayerTeamPacket.Action p_179331_) 
- 
write- Specified by:
- writein interface- Packet<ClientGamePacketListener>
 
- 
shouldHavePlayerListprivate static boolean shouldHavePlayerList(int p_179325_) 
- 
shouldHaveParametersprivate static boolean shouldHaveParameters(int p_179337_) 
- 
getPlayerAction
- 
getTeamAction
- 
handle- Specified by:
- handlein interface- Packet<ClientGamePacketListener>
 
- 
getName
- 
getPlayers
- 
getParameters
 
-