A json representation of all minecraft packets. Generated by DockyardMC/PacketGenerators from wiki.vg data
Here are pre-made data classes for use with kotlinx-serialization
@Serializable
data class Packet(
var id: String,
val header: String,
val packet: String,
@SerialName("protocol_state")
var protocolState: String,
@SerialName("bound_to")
var boundTo: String,
var content: List<PacketField>
)
@Serializable
data class PacketField(
val field: String,
val type: String
)