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) private
ClientboundUpdateAttributesPacket
(int p_320052_, List<ClientboundUpdateAttributesPacket.AttributeSnapshot> p_320480_) -
Method Summary
Modifier and TypeMethodDescriptionint
void
handle
(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, wait
Methods 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:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getEntityId
public int getEntityId() -
getValues
-