This commit is contained in:
adman
2025-12-15 22:07:37 +01:00
parent 01bf2a575c
commit 6108534a12
1118 changed files with 13788358 additions and 331 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+37
View File
@@ -0,0 +1,37 @@
package generated
import (
"io"
"github.com/admin-else/queser"
"github.com/admin-else/queser/generated/v1_21_8"
)
func PacketIdentifierToType(v string, d queser.Direction, s queser.State, i string) (t any) {
switch v {
case "1.21.8":
t = v1_21_8.PacketIdentifierToType(d, s, i)
default:
}
return
}
func TypeToPacketIdentifier(v string, d queser.Direction, s queser.State, t any) (i string) {
switch v {
case "1.21.8":
i = v1_21_8.TypeToPacketIdentifier(d, s, t)
}
return
}
func DecodePacket(v string, d queser.Direction, s queser.State, r io.Reader) (packet any, err error) {
switch v {
case "1.21.8":
packet, err = v1_21_8.DecodePacket(d, s, r)
}
return
}
func EncodePacket(v string, d queser.Direction, s queser.State, i string, p any, w io.Writer) (err error) {
switch v {
case "1.21.8":
err = v1_21_8.EncodePacket(d, s, i, p, w)
}
return
}