Class ClientboundUpdateAttributesPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundUpdateAttributesPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundUpdateAttributesPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ClientboundUpdateAttributesPacket.AttributeSnapshot> private final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundUpdateAttributesPacket(int pEntityId, Collection<AttributeInstance> pAttributes) privateClientboundUpdateAttributesPacket(int p_320052_, List<ClientboundUpdateAttributesPacket.AttributeSnapshot> p_320480_) -
Method Summary
Modifier and TypeMethodDescriptionintvoidhandle(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()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, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf,ClientboundUpdateAttributesPacket> STREAM_CODEC -
entityId
private final int entityId -
attributes
-
-
Constructor Details
-
ClientboundUpdateAttributesPacket
-
ClientboundUpdateAttributesPacket
private ClientboundUpdateAttributesPacket(int p_320052_, List<ClientboundUpdateAttributesPacket.AttributeSnapshot> p_320480_)
-
-
Method Details
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getEntityId
public int getEntityId() -
getValues
-