MCBE
OverviewPacketsAddItemActor
ID 0x0F · 15Server → ClientEntities

AddItemActor

add-item-actor.bin
struct AddItemActor {
  ActorUniqueID                                Id;
  ActorRuntimeID                               RuntimeId;
  SerializedNetworkItemStackDescriptor         Item;
  Vec3                                         Pos;
  Vec3                                         Velocity;
  SynchedActorData.CopyableDataList            Data;
  bool                                         IsFromFishing;
}

Structure

FieldTypeDescription
IdActorUniqueID
Runtime IdActorRuntimeID
ItemSerializedNetworkItemStackDescriptor
PosVec3
VelocityVec3
DataSynchedActorData.CopyableDataList
Is From Fishingbool

Structure of SerializedNetworkItemStackDescriptor

cerealizer<NetworkItemStackDescriptor>::SerializedData. ItemStackNetIdVariant's

FieldTypeDescription
Idint16 (LE)
Stack Sizeuint16 (LE)
Aux Valuevaruint32
Net Id Variantoptional byte + varint32Presence flag on the wire; value omitted when absent.
Block Runtime Idvaruint32
User Data Bufferbyte[]

Structure of Vec3

FieldTypeDescription
Xfloat32 (LE)
Yfloat32 (LE)
Zfloat32 (LE)

Structure of CopyableDataList

FieldTypeDescription
Datavaruint32 count + DataItemEntry[]Length-prefixed sequence.

Structure of DataItemEntry

FieldTypeDescription
Idvaruint32
Payloadtagged 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

FieldTypeDescription
Typeconstant DataItemType.BYTEFixed tag written on the wire.
Valueint8 (LE)

Structure of DataItemShortPayload

FieldTypeDescription
Typeconstant DataItemType.SHORTFixed tag written on the wire.
Valueint16 (LE)

Structure of DataItemIntPayload

FieldTypeDescription
Typeconstant DataItemType.INTFixed tag written on the wire.
Valuevarint32

Structure of DataItemFloatPayload

FieldTypeDescription
Typeconstant DataItemType.FLOATFixed tag written on the wire.
Valuefloat32 (LE)

Structure of DataItemStringPayload

FieldTypeDescription
Typeconstant DataItemType.STRINGFixed tag written on the wire.
Valuestring

Structure of DataItemCompoundTagPayload

FieldTypeDescription
Typeconstant DataItemType.COMPOUND_TAGFixed tag written on the wire.
ValueCompoundTag

Structure of DataItemPosPayload

FieldTypeDescription
Typeconstant DataItemType.POSFixed tag written on the wire.
ValueBlockPos

Structure of DataItemInt64Payload

FieldTypeDescription
Typeconstant DataItemType.INT64Fixed tag written on the wire.
Valuevarint64

Structure of DataItemVec3Payload

FieldTypeDescription
Typeconstant DataItemType.VEC3Fixed tag written on the wire.
ValueVec3

Notes

  • No special notes.