OverviewPacketsSetActorData ID 0x27 · 39Server → ClientEntities
Updates an entity's synchronized data: flags (on fire, sneaking, ...), byte/short/int/float/long variants and component data like bounding box.
set-actor-data.bin
struct SetActorData {
ActorRuntimeID Id;
SynchedActorData.CopyableDataList PackedItems;
PropertySyncData SynchedProperties;
PlayerInputTick Tick;
}Structure
| Field | Type | Description |
|---|
| Id | ActorRuntimeID | |
| Packed Items | SynchedActorData.CopyableDataList | |
| Synched Properties | PropertySyncData | |
| Tick | PlayerInputTick | |
Structure of CopyableDataList
| Field | Type | Description |
|---|
| Data | varuint32 count + DataItemEntry[] | Length-prefixed sequence. |
Structure of DataItemEntry
| Field | Type | Description |
|---|
| Id | varuint32 | |
| Payload | tagged case index (0=DataItemBytePayload, 1=DataItemShortPayload, 2=DataItemIntPayload, 3=DataItemFloatPayload, 4=DataItemStringPayload, 5=DataItemCompoundTagPayload, 6=DataItemPosPayload, 7=DataItemInt64Payload, 8=DataItemVec3Payload) | Variant: an index selects the payload type — see the tables below. |
Structure of DataItemBytePayload
| Field | Type | Description |
|---|
| Type | constant DataItemType.BYTE | Fixed tag written on the wire. |
| Value | int8 (LE) | |
Structure of DataItemShortPayload
| Field | Type | Description |
|---|
| Type | constant DataItemType.SHORT | Fixed tag written on the wire. |
| Value | int16 (LE) | |
Structure of DataItemIntPayload
| Field | Type | Description |
|---|
| Type | constant DataItemType.INT | Fixed tag written on the wire. |
| Value | varint32 | |
Structure of DataItemFloatPayload
| Field | Type | Description |
|---|
| Type | constant DataItemType.FLOAT | Fixed tag written on the wire. |
| Value | float32 (LE) | |
Structure of DataItemStringPayload
| Field | Type | Description |
|---|
| Type | constant DataItemType.STRING | Fixed tag written on the wire. |
| Value | string | |
Structure of DataItemCompoundTagPayload
| Field | Type | Description |
|---|
| Type | constant DataItemType.COMPOUND_TAG | Fixed tag written on the wire. |
| Value | CompoundTag | |
Structure of DataItemPosPayload
| Field | Type | Description |
|---|
| Type | constant DataItemType.POS | Fixed tag written on the wire. |
| Value | BlockPos | |
Structure of DataItemInt64Payload
| Field | Type | Description |
|---|
| Type | constant DataItemType.INT64 | Fixed tag written on the wire. |
| Value | varint64 | |
Structure of DataItemVec3Payload
| Field | Type | Description |
|---|
| Type | constant DataItemType.VEC3 | Fixed tag written on the wire. |
| Value | Vec3 | |
Structure of BlockPos
| Field | Type | Description |
|---|
| X | varint32 | |
| Y | varint32 | |
| Z | varint32 | |
Structure of Vec3
| Field | Type | Description |
|---|
| X | float32 (LE) | |
| Y | float32 (LE) | |
| Z | float32 (LE) | |
Notes