add 26.1 support, raw-capture subcommand, and local minecraft-data copy script

This commit is contained in:
adman
2026-07-22 23:22:14 +02:00
parent 126ff5bca0
commit d388e2c350
39 changed files with 298837 additions and 285 deletions
+10 -10
View File
@@ -1,14 +1,14 @@
// Code generated by strom. DO NOT EDIT.
// source: minecraft-data/pc/1.21.8/protocol.json (sha256:627f4138d1a6e4a6fff1cde6008c95a72cd580728aafca8ba62ad0ef21c88f61)
// version: (devel) (go1.26.4-X:nodwarf5)
// source: minecraft-data/pc/1.21.8/protocol.json (sha256:2d064a68210ff4816cbeba22e0340b8164564753c5f0c795c0a2ec4a65bfe2a1)
// version: (devel) (go1.26.5-X:nodwarf5)
package v1_21_8
import (
"encoding/binary"
"github.com/admin-else/strom/mc/nbt"
"github.com/admin-else/strom/mc/proto_base"
"github.com/google/uuid"
"io"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/nbt"
"github.com/google/uuid"
)
type ArmorTrimMaterial struct {
@@ -22720,7 +22720,7 @@ type PlayToServerPacketChatCommandSigned struct {
}
MessageCount int32
Acknowledged [3]byte
Checksum int8
Checksum uint8
}
func (ret *PlayToServerPacketChatCommandSigned) Decode(r io.ReadSeeker) (err error) {
@@ -22825,7 +22825,7 @@ type PlayToServerPacketChatMessage struct {
Signature *[256]byte
Offset int32
Acknowledged [3]byte
Checksum int8
Checksum uint8
}
func (ret *PlayToServerPacketChatMessage) Decode(r io.ReadSeeker) (err error) {
@@ -23775,7 +23775,7 @@ func (ret *PlayToServerPacketEditBook) Encode(w io.Writer) (err error) {
type PlayToServerPacketEnchantItem struct {
WindowId ContainerID
Enchantment int8
Enchantment int32
}
func (ret *PlayToServerPacketEnchantItem) Decode(r io.ReadSeeker) (err error) {
@@ -23783,7 +23783,7 @@ func (ret *PlayToServerPacketEnchantItem) Decode(r io.ReadSeeker) (err error) {
if err != nil {
return
}
err = binary.Read(r, binary.BigEndian, &ret.Enchantment)
ret.Enchantment, err = proto_base.DecodeVarInt(r)
if err != nil {
return
}
@@ -23794,7 +23794,7 @@ func (ret *PlayToServerPacketEnchantItem) Encode(w io.Writer) (err error) {
if err != nil {
return
}
err = binary.Write(w, binary.BigEndian, ret.Enchantment)
err = proto_base.EncodeVarInt(w, ret.Enchantment)
if err != nil {
return
}