ItemSyncPacket

data class ItemSyncPacket(val items: List<ItemSyncPacket.ItemData>) : CustomPacketPayload

Constructors

Link copied to clipboard
constructor(items: List<ItemSyncPacket.ItemData>)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class ItemData(val id: Identifier, val componentsNbt: CompoundTag)

Data for a single item to be synchronized. Contains the item id and its full DataComponentMap serialized as NBT.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun type(): CustomPacketPayload.Type<out CustomPacketPayload>
Link copied to clipboard
fun write(buf: FriendlyByteBuf)