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 enumstatic final recordprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EnumSet<ClientboundPlayerInfoUpdatePacket.Action> private final List<ClientboundPlayerInfoUpdatePacket.Entry> static final StreamCodec<RegistryFriendlyByteBuf, ClientboundPlayerInfoUpdatePacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundPlayerInfoUpdatePacket(EnumSet<ClientboundPlayerInfoUpdatePacket.Action> actions, Collection<ServerPlayer> players) ClientboundPlayerInfoUpdatePacket(ClientboundPlayerInfoUpdatePacket.Action action, ServerPlayer player) private -
Method Summary
Modifier and TypeMethodDescriptionactions()createPlayerInitializing(Collection<ServerPlayer> players) entries()voidhandle(ClientGamePacketListener listener) toString()type()private voidwrite(RegistryFriendlyByteBuf output) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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> actions, Collection<ServerPlayer> players) -
ClientboundPlayerInfoUpdatePacket
public ClientboundPlayerInfoUpdatePacket(ClientboundPlayerInfoUpdatePacket.Action action, ServerPlayer player) -
ClientboundPlayerInfoUpdatePacket
-
-
Method Details
-
createPlayerInitializing
public static ClientboundPlayerInfoUpdatePacket createPlayerInitializing(Collection<ServerPlayer> players) -
write
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
actions
-
entries
-
newEntries
-
toString
-