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 classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intprivate static intprivate intprivate static intprivate static intprivate static intprivate static intprivate static intprivate Stringprivate 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:
- Constant Field Values
-
METHOD_REMOVE
private static final int METHOD_REMOVE- See Also:
- Constant Field Values
-
METHOD_CHANGE
private static final int METHOD_CHANGE- See Also:
- Constant Field Values
-
METHOD_JOIN
private static final int METHOD_JOIN- See Also:
- Constant Field Values
-
METHOD_LEAVE
private static final int METHOD_LEAVE- See Also:
- Constant Field Values
-
MAX_VISIBILITY_LENGTH
private static final int MAX_VISIBILITY_LENGTH- See Also:
- Constant Field Values
-
MAX_COLLISION_LENGTH
private static final int MAX_COLLISION_LENGTH- See Also:
- Constant Field Values
-
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
-