node-minecraft-protocol-forge
node-minecraft-protocol-forge copied to clipboard
Parse all fields of the RegistryData (1.8+) or ModIdData (1.7-) packets
"RegistryData":
[
"container",
[
{
"name": "hasMore",
"type": "bool"
},
/* TODO: support all fields
{
"name": "registryName",
"type": "string"
},
*/
],
],
RegistryData is only parsed for the hasMore bool, to know when the last packet was received. http://wiki.vg/Minecraft_Forge_Handshake#RegistryData documents the full structure. Includes registry name, string to id mapping, and array of substitutions. Should parse this because it might be useful for client applications.
1.8 RegistryData is ModIdData in 1.7, both discriminator byte 3, but slightly different structure (and only one ModIdData, but several RegistryData): see https://github.com/PrismarineJS/node-minecraft-protocol-forge/issues/3