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
+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
}