Skip to content

BlockEntityStatePacket

@Serializable



data class BlockEntityStatePacket(
    val pos: SBlockPos, 
    val updates: Map<String, BlockEntityStatePacket.SerializedValue> = emptyMap(), 
    val timestamp: Long = 0
)

A network packet that carries block entity state changes from server to client.

This packet is used to synchronize block entity property changes with connected clients, enabling reactive UI updates in Compose-based screens.

Constructors

BlockEntityStatePacket

constructor(
    pos: SBlockPos, 
    updates: Map<String, BlockEntityStatePacket.SerializedValue> = emptyMap(), 
    timestamp: Long = 0
)

Types

Companion

object Companion

SerializedValue

@Serializable



sealed class SerializedValue

A serialized property value that can be transmitted over the network.

Properties

pos

val pos: SBlockPos

timestamp

updates