vai-experiment: expand proto_generated to 54 versions (1.8 through 26.2)

- Added 45 new version directories with protocol data
- Regenerated proto_generated packages for all 54 versions
- Fixed void-type packets (bundle_delimiter) in 14 protocol.json files
- Copied protocol data for missing minor versions from nearest release
- Updated generator to include all versions in ViaVaiVersions
This commit is contained in:
OpenCode
2026-08-07 09:32:30 +02:00
parent 1b2552492b
commit 46dfaf1495
619 changed files with 5395192 additions and 116 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
// Code generated by strom. DO NOT EDIT.
// source: minecraft-data/pc/1.12.2/protocol.json (sha256:21c57208db654a5e14a34cb696570080df179c5c642e53b16120399eee9232be)
// version: v0.6.6-0.20260805202908-e58499ed0924+dirty (go1.26.2)
// version: (devel) (go1.23.4)
package v1_12_2
import (
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
// Code generated by strom. DO NOT EDIT.
// source: minecraft-data/pc/1.14.4/protocol.json (sha256:b6edff5abaaf234037b5019024d749e27e746250a23253bb4ad77d8f76e93167)
// version: v0.6.6-0.20260805202908-e58499ed0924+dirty (go1.26.2)
// version: (devel) (go1.23.4)
package v1_14_4
import (
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
// Code generated by strom. DO NOT EDIT.
// source: minecraft-data/pc/1.16.2/protocol.json (sha256:d96a3c5a7a7ddf2105e23990c2471b3aeafe4a6975e0c9d7d7943b599af9dfb3)
// version: v0.6.6-0.20260805202908-e58499ed0924+dirty (go1.26.2)
// version: (devel) (go1.23.4)
package v1_16_5
import (
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
// Code generated by strom. DO NOT EDIT.
// source: minecraft-data/pc/1.21.11/protocol.json (sha256:fec3d0a1516ec35ffea3950f95aef76e7818bf1ab47c1205310c00180944c340)
// version: v0.6.6-0.20260805202908-e58499ed0924+dirty (go1.26.2)
// version: (devel) (go1.23.4)
package v1_21_11
import (
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
// Code generated by strom. DO NOT EDIT.
// source: minecraft-data/pc/1.21.8/protocol.json (sha256:c7fd6d6aa06b260440e2e0e82995920e8cabfb0b71d5521f3d7b5ecb14ab054c)
// version: v0.6.6-0.20260805202908-e58499ed0924+dirty (go1.26.2)
// version: (devel) (go1.23.4)
package v1_21_8
import (
+1 -1
View File
@@ -1,6 +1,6 @@
// Code generated by strom. DO NOT EDIT.
// source: minecraft-data/pc/1.21.9/protocol.json (sha256:de50c20cccb0093133fff3e243efe1fa9ffe2bfb9c67dd2f5c2a747c6935f9d6)
// version: v0.6.6-0.20260805202908-e58499ed0924+dirty (go1.26.2)
// version: (devel) (go1.23.4)
package v1_21_9
import (
+1 -1
View File
@@ -1,6 +1,6 @@
// Code generated by strom. DO NOT EDIT.
// source: minecraft-data/pc/1.8/protocol.json (sha256:79fe774bfc255dd281899c004fbb9c7adc40fb107de9353da1dd0371ea4b53af)
// version: v0.6.6-0.20260805202908-e58499ed0924+dirty (go1.26.2)
// version: (devel) (go1.23.4)
package v1_8
import (
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
// Code generated by strom. DO NOT EDIT.
// source: minecraft-data/pc/26.1/protocol.json (sha256:093dbdd74f2cfbc8fc6be2e6f26c6b4d35470771cb34691306c68b066d785529)
// version: v0.6.6-0.20260805202908-e58499ed0924+dirty (go1.26.2)
// version: (devel) (go1.23.4)
package v26_1
import (
+38 -105
View File
@@ -1,6 +1,6 @@
// Code generated by strom. DO NOT EDIT.
// source: minecraft-data/pc/26.2/protocol.json (sha256:7d1157fb503d364c1673400a847e470e08d4036181700423939571ea83ee561d)
// version: v0.6.6-0.20260805202908-e58499ed0924+dirty (go1.26.2)
// source: minecraft-data/pc/26.2/protocol.json (sha256:e0d76c3d66b0995e69435d3ea0b2424e127cfcc610e230a511f51f899a1cb8f0)
// version: (devel) (go1.23.4)
package v26_2
import (
@@ -17717,52 +17717,50 @@ func (ret *PlayToClientPacketDeclareCommands) Encode(w io.Writer) (err error) {
}
type PlayToClientPacketDeclareRecipes struct {
ItemSets []struct {
Key IDSet
Recipes []struct {
Name string
Items []int32
}
StoneCutterRecipes []struct {
Input []int32
OptionDisplay PlayToClientSlotDisplay
RecipePresent bool
Recipe any
Input IDSet
SlotDisplay PlayToClientSlotDisplay
}
}
func (ret *PlayToClientPacketDeclareRecipes) Decode(r io.ReadSeeker) (err error) {
var lPlayToClientPacketDeclareRecipesItemSets int32
lPlayToClientPacketDeclareRecipesItemSets, err = proto_base.DecodeVarInt(r)
var lPlayToClientPacketDeclareRecipesRecipes int32
lPlayToClientPacketDeclareRecipesRecipes, err = proto_base.DecodeVarInt(r)
if err != nil {
return
}
ret.ItemSets = []struct {
Key IDSet
ret.Recipes = []struct {
Name string
Items []int32
}{}
for range lPlayToClientPacketDeclareRecipesItemSets {
var PlayToClientPacketDeclareRecipesItemSetsElement struct {
Key IDSet
for range lPlayToClientPacketDeclareRecipesRecipes {
var PlayToClientPacketDeclareRecipesRecipesElement struct {
Name string
Items []int32
}
err = PlayToClientPacketDeclareRecipesItemSetsElement.Key.Decode(r)
PlayToClientPacketDeclareRecipesRecipesElement.Name, err = proto_base.DecodeString(r)
if err != nil {
return
}
var lPlayToClientPacketDeclareRecipesItemSetsElementItems int32
lPlayToClientPacketDeclareRecipesItemSetsElementItems, err = proto_base.DecodeVarInt(r)
var lPlayToClientPacketDeclareRecipesRecipesElementItems int32
lPlayToClientPacketDeclareRecipesRecipesElementItems, err = proto_base.DecodeVarInt(r)
if err != nil {
return
}
PlayToClientPacketDeclareRecipesItemSetsElement.Items = []int32{}
for range lPlayToClientPacketDeclareRecipesItemSetsElementItems {
var PlayToClientPacketDeclareRecipesItemSetsElementItemsElement int32
PlayToClientPacketDeclareRecipesItemSetsElementItemsElement, err = proto_base.DecodeVarInt(r)
PlayToClientPacketDeclareRecipesRecipesElement.Items = []int32{}
for range lPlayToClientPacketDeclareRecipesRecipesElementItems {
var PlayToClientPacketDeclareRecipesRecipesElementItemsElement int32
PlayToClientPacketDeclareRecipesRecipesElementItemsElement, err = proto_base.DecodeVarInt(r)
if err != nil {
return
}
PlayToClientPacketDeclareRecipesItemSetsElement.Items = append(PlayToClientPacketDeclareRecipesItemSetsElement.Items, PlayToClientPacketDeclareRecipesItemSetsElementItemsElement)
PlayToClientPacketDeclareRecipesRecipesElement.Items = append(PlayToClientPacketDeclareRecipesRecipesElement.Items, PlayToClientPacketDeclareRecipesRecipesElementItemsElement)
}
ret.ItemSets = append(ret.ItemSets, PlayToClientPacketDeclareRecipesItemSetsElement)
ret.Recipes = append(ret.Recipes, PlayToClientPacketDeclareRecipesRecipesElement)
}
var lPlayToClientPacketDeclareRecipesStoneCutterRecipes int32
lPlayToClientPacketDeclareRecipesStoneCutterRecipes, err = proto_base.DecodeVarInt(r)
@@ -17770,76 +17768,42 @@ func (ret *PlayToClientPacketDeclareRecipes) Decode(r io.ReadSeeker) (err error)
return
}
ret.StoneCutterRecipes = []struct {
Input []int32
OptionDisplay PlayToClientSlotDisplay
RecipePresent bool
Recipe any
Input IDSet
SlotDisplay PlayToClientSlotDisplay
}{}
for range lPlayToClientPacketDeclareRecipesStoneCutterRecipes {
var PlayToClientPacketDeclareRecipesStoneCutterRecipesElement struct {
Input []int32
OptionDisplay PlayToClientSlotDisplay
RecipePresent bool
Recipe any
Input IDSet
SlotDisplay PlayToClientSlotDisplay
}
var lPlayToClientPacketDeclareRecipesStoneCutterRecipesElementInput int32
lPlayToClientPacketDeclareRecipesStoneCutterRecipesElementInput, err = proto_base.DecodeVarInt(r)
err = PlayToClientPacketDeclareRecipesStoneCutterRecipesElement.Input.Decode(r)
if err != nil {
return
}
PlayToClientPacketDeclareRecipesStoneCutterRecipesElement.Input = []int32{}
for range lPlayToClientPacketDeclareRecipesStoneCutterRecipesElementInput {
var PlayToClientPacketDeclareRecipesStoneCutterRecipesElementInputElement int32
PlayToClientPacketDeclareRecipesStoneCutterRecipesElementInputElement, err = proto_base.DecodeVarInt(r)
if err != nil {
return
}
PlayToClientPacketDeclareRecipesStoneCutterRecipesElement.Input = append(PlayToClientPacketDeclareRecipesStoneCutterRecipesElement.Input, PlayToClientPacketDeclareRecipesStoneCutterRecipesElementInputElement)
}
err = PlayToClientPacketDeclareRecipesStoneCutterRecipesElement.OptionDisplay.Decode(r)
err = PlayToClientPacketDeclareRecipesStoneCutterRecipesElement.SlotDisplay.Decode(r)
if err != nil {
return
}
err = binary.Read(r, binary.BigEndian, &PlayToClientPacketDeclareRecipesStoneCutterRecipesElement.RecipePresent)
if err != nil {
return
}
switch PlayToClientPacketDeclareRecipesStoneCutterRecipesElement.RecipePresent {
case true:
var PlayToClientPacketDeclareRecipesStoneCutterRecipesElementRecipeTrueTmp struct {
Result Slot
}
err = PlayToClientPacketDeclareRecipesStoneCutterRecipesElementRecipeTrueTmp.Result.Decode(r)
if err != nil {
return
}
PlayToClientPacketDeclareRecipesStoneCutterRecipesElement.Recipe = PlayToClientPacketDeclareRecipesStoneCutterRecipesElementRecipeTrueTmp
default:
var PlayToClientPacketDeclareRecipesStoneCutterRecipesElementRecipeTmp struct {
}
PlayToClientPacketDeclareRecipesStoneCutterRecipesElement.Recipe = PlayToClientPacketDeclareRecipesStoneCutterRecipesElementRecipeTmp
}
ret.StoneCutterRecipes = append(ret.StoneCutterRecipes, PlayToClientPacketDeclareRecipesStoneCutterRecipesElement)
}
return
}
func (ret *PlayToClientPacketDeclareRecipes) Encode(w io.Writer) (err error) {
err = proto_base.EncodeVarInt(w, int32(len(ret.ItemSets)))
err = proto_base.EncodeVarInt(w, int32(len(ret.Recipes)))
if err != nil {
return
}
for iPlayToClientPacketDeclareRecipesItemSets := range len(ret.ItemSets) {
PlayToClientPacketDeclareRecipesItemSetsInnerKeyEncTmp := ret.ItemSets[iPlayToClientPacketDeclareRecipesItemSets].Key
err = PlayToClientPacketDeclareRecipesItemSetsInnerKeyEncTmp.Encode(w)
for iPlayToClientPacketDeclareRecipesRecipes := range len(ret.Recipes) {
err = proto_base.EncodeString(w, ret.Recipes[iPlayToClientPacketDeclareRecipesRecipes].Name)
if err != nil {
return
}
err = proto_base.EncodeVarInt(w, int32(len(ret.ItemSets[iPlayToClientPacketDeclareRecipesItemSets].Items)))
err = proto_base.EncodeVarInt(w, int32(len(ret.Recipes[iPlayToClientPacketDeclareRecipesRecipes].Items)))
if err != nil {
return
}
for iPlayToClientPacketDeclareRecipesItemSetsInnerItems := range len(ret.ItemSets[iPlayToClientPacketDeclareRecipesItemSets].Items) {
err = proto_base.EncodeVarInt(w, ret.ItemSets[iPlayToClientPacketDeclareRecipesItemSets].Items[iPlayToClientPacketDeclareRecipesItemSetsInnerItems])
for iPlayToClientPacketDeclareRecipesRecipesInnerItems := range len(ret.Recipes[iPlayToClientPacketDeclareRecipesRecipes].Items) {
err = proto_base.EncodeVarInt(w, ret.Recipes[iPlayToClientPacketDeclareRecipesRecipes].Items[iPlayToClientPacketDeclareRecipesRecipesInnerItems])
if err != nil {
return
}
@@ -17850,47 +17814,16 @@ func (ret *PlayToClientPacketDeclareRecipes) Encode(w io.Writer) (err error) {
return
}
for iPlayToClientPacketDeclareRecipesStoneCutterRecipes := range len(ret.StoneCutterRecipes) {
err = proto_base.EncodeVarInt(w, int32(len(ret.StoneCutterRecipes[iPlayToClientPacketDeclareRecipesStoneCutterRecipes].Input)))
PlayToClientPacketDeclareRecipesStoneCutterRecipesInnerInputEncTmp := ret.StoneCutterRecipes[iPlayToClientPacketDeclareRecipesStoneCutterRecipes].Input
err = PlayToClientPacketDeclareRecipesStoneCutterRecipesInnerInputEncTmp.Encode(w)
if err != nil {
return
}
for iPlayToClientPacketDeclareRecipesStoneCutterRecipesInnerInput := range len(ret.StoneCutterRecipes[iPlayToClientPacketDeclareRecipesStoneCutterRecipes].Input) {
err = proto_base.EncodeVarInt(w, ret.StoneCutterRecipes[iPlayToClientPacketDeclareRecipesStoneCutterRecipes].Input[iPlayToClientPacketDeclareRecipesStoneCutterRecipesInnerInput])
if err != nil {
return
}
}
PlayToClientPacketDeclareRecipesStoneCutterRecipesInnerOptionDisplayEncTmp := ret.StoneCutterRecipes[iPlayToClientPacketDeclareRecipesStoneCutterRecipes].OptionDisplay
err = PlayToClientPacketDeclareRecipesStoneCutterRecipesInnerOptionDisplayEncTmp.Encode(w)
PlayToClientPacketDeclareRecipesStoneCutterRecipesInnerSlotDisplayEncTmp := ret.StoneCutterRecipes[iPlayToClientPacketDeclareRecipesStoneCutterRecipes].SlotDisplay
err = PlayToClientPacketDeclareRecipesStoneCutterRecipesInnerSlotDisplayEncTmp.Encode(w)
if err != nil {
return
}
err = binary.Write(w, binary.BigEndian, ret.StoneCutterRecipes[iPlayToClientPacketDeclareRecipesStoneCutterRecipes].RecipePresent)
if err != nil {
return
}
switch ret.StoneCutterRecipes[iPlayToClientPacketDeclareRecipesStoneCutterRecipes].RecipePresent {
case true:
PlayToClientPacketDeclareRecipesStoneCutterRecipesInnerRecipe, ok := ret.StoneCutterRecipes[iPlayToClientPacketDeclareRecipesStoneCutterRecipes].Recipe.(struct {
Result Slot
})
if !ok {
err = proto_base.BadTypeError
return
}
PlayToClientPacketDeclareRecipesStoneCutterRecipesInnerRecipeResultEncTmp := PlayToClientPacketDeclareRecipesStoneCutterRecipesInnerRecipe.Result
err = PlayToClientPacketDeclareRecipesStoneCutterRecipesInnerRecipeResultEncTmp.Encode(w)
if err != nil {
return
}
default:
_, ok := ret.StoneCutterRecipes[iPlayToClientPacketDeclareRecipesStoneCutterRecipes].Recipe.(struct {
})
if !ok {
err = proto_base.BadTypeError
return
}
}
}
return
}