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
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Field Summary
FieldsModifier 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 Summary
ConstructorsModifierConstructorDescriptionprivateClientboundSetPlayerTeamPacket(String p_179318_, int p_179319_, Optional<ClientboundSetPlayerTeamPacket.Parameters> p_179320_, Collection<String> p_179321_) ClientboundSetPlayerTeamPacket(FriendlyByteBuf p_179323_) -
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()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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
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
- Specified by:
writein interfacePacket<ClientGamePacketListener>
-
shouldHavePlayerList
private static boolean shouldHavePlayerList(int p_179325_) -
shouldHaveParameters
private static boolean shouldHaveParameters(int p_179337_) -
getPlayerAction
-
getTeamAction
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getName
-
getPlayers
-
getParameters
-