Class WrapperPlayServerEntityMetadata
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerEntityMetadata
Send by server to client to update the entity metadata for a previously spawned entity
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketTypeThe packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerEntityMetadata(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionintgetId()Gets the id of the entity for which to modify metadataList<com.comphenix.protocol.wrappers.WrappedDataValue>Retrieves a list of metadata values to updatevoidsetId(int value) Sets the id of the entity for which to modify metadatavoidsetPackedItems(List<com.comphenix.protocol.wrappers.WrappedDataValue> value) Sets the list of metadata values to updateMethods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe packet type that is wrapped by this wrapper.
-
-
Constructor Details
-
WrapperPlayServerEntityMetadata
public WrapperPlayServerEntityMetadata()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerEntityMetadata
public WrapperPlayServerEntityMetadata(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet- the packet to wrap
-
-
Method Details
-
getId
public int getId()Gets the id of the entity for which to modify metadata- Returns:
- entity id
-
setId
public void setId(int value) Sets the id of the entity for which to modify metadata- Parameters:
value- entity id
-
getPackedItems
Retrieves a list of metadata values to update- Returns:
- 'packedItems' list of metadata values
-
setPackedItems
Sets the list of metadata values to update- Parameters:
value- List of metadata values
-