Gets packet data from wiki.vg and converts them to json format
repositories {
maven {
name = "devOS"
url = uri("https://mvn.devos.one/releases")
}
}
dependencies {
implementation("io.github.dockyardmc:wikivg-datagen:1.3")
}
repositories {
maven {
name "devOS"
url "https://mvn.devos.one/releases"
}
}
dependencies {
implementation 'io.github.dockyardmc:wikivg-datagen:1.3'
}
You can get the latest data like this:
val dataGenerator = WikiVGDataGenerator()
val json = dataGenerator.json
val list = dataGenerator.packets
Example: (Sound Effect Packet)
{
"id": "0x68",
"header": "Sound Effect",
"packet": "sound_effect",
"protocol_state": "play",
"bound_to": "client",
"content": [
{
"field": "sound_name",
"type": "optional_identifier"
},
{
"field": "has_fixed_range",
"type": "optional_boolean"
},
{
"field": "range",
"type": "optional_float"
},
{
"field": "sound_category",
"type": "var_int_enum"
},
{
"field": "effect_position_x",
"type": "int"
},
{
"field": "effect_position_y",
"type": "int"
},
{
"field": "effect_position_z",
"type": "int"
},
{
"field": "volume",
"type": "float"
},
{
"field": "pitch",
"type": "float"
},
{
"field": "seed",
"type": "long"
}
]
}