Class ClientboundPlayerInfoUpdatePacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundPlayerInfoUpdatePacket
extends Object
implements Packet<ClientGamePacketListener>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static final record
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EnumSet
<ClientboundPlayerInfoUpdatePacket.Action> private final List
<ClientboundPlayerInfoUpdatePacket.Entry> -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundPlayerInfoUpdatePacket
(EnumSet<ClientboundPlayerInfoUpdatePacket.Action> pActions, Collection<ServerPlayer> pPlayers) ClientboundPlayerInfoUpdatePacket
(ClientboundPlayerInfoUpdatePacket.Action pAction, ServerPlayer pPlayer) private
-
Method Summary
Modifier and TypeMethodDescriptionactions()
createPlayerInitializing
(Collection<ServerPlayer> pPlayers) entries()
void
handle
(ClientGamePacketListener p_249935_) Passes this Packet on to the PacketListener for processing.toString()
type()
private void
write
(RegistryFriendlyByteBuf pBuffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf,ClientboundPlayerInfoUpdatePacket> STREAM_CODEC -
actions
-
entries
-
-
Constructor Details
-
ClientboundPlayerInfoUpdatePacket
public ClientboundPlayerInfoUpdatePacket(EnumSet<ClientboundPlayerInfoUpdatePacket.Action> pActions, Collection<ServerPlayer> pPlayers) -
ClientboundPlayerInfoUpdatePacket
public ClientboundPlayerInfoUpdatePacket(ClientboundPlayerInfoUpdatePacket.Action pAction, ServerPlayer pPlayer) -
ClientboundPlayerInfoUpdatePacket
-
-
Method Details
-
createPlayerInitializing
public static ClientboundPlayerInfoUpdatePacket createPlayerInitializing(Collection<ServerPlayer> pPlayers) -
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Description copied from interface:Packet
Passes this Packet on to the PacketListener for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
actions
-
entries
-
newEntries
-
toString
-