add 26.1 support, raw-capture subcommand, and local minecraft-data copy script
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
// Code generated by strom. DO NOT EDIT.
|
||||
// source: minecraft-data/pc/1.21.9/protocol.json (sha256:5c5c5947ac583745cb1ea9a8b2fa654f0356349f37fa0248ba2e44baf4e5c485)
|
||||
// version: (devel) (go1.26.4-X:nodwarf5)
|
||||
// source: minecraft-data/pc/1.21.9/protocol.json (sha256:7d4791896427272ee05e74a2a9da093e7c100024f71f88dac453601a605cb66b)
|
||||
// version: (devel) (go1.26.5-X:nodwarf5)
|
||||
package v1_21_9
|
||||
|
||||
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 {
|
||||
@@ -24089,7 +24089,7 @@ type PlayToServerPacketChatCommandSigned struct {
|
||||
}
|
||||
MessageCount int32
|
||||
Acknowledged [3]byte
|
||||
Checksum int8
|
||||
Checksum uint8
|
||||
}
|
||||
|
||||
func (ret *PlayToServerPacketChatCommandSigned) Decode(r io.ReadSeeker) (err error) {
|
||||
@@ -25175,7 +25175,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) {
|
||||
@@ -25183,7 +25183,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
|
||||
}
|
||||
@@ -25194,7 +25194,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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user