This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
**/*_test.go export-ignore
|
||||
**/testdata export-ignore
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.tmcpr filter=lfs diff=lfs merge=lfs -text
|
||||
*.mcpr filter=lfs diff=lfs merge=lfs -text
|
||||
*.mca filter=lfs diff=lfs merge=lfs -text
|
||||
@@ -0,0 +1,28 @@
|
||||
name: Go
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["master"]
|
||||
pull_request:
|
||||
branches: ["master"]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "1.26.2"
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Vet
|
||||
run: go vet -v ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"log/slog"
|
||||
"os"
|
||||
|
||||
"github.com/admin-else/strom/mc/api"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/api"
|
||||
)
|
||||
|
||||
var cmd = flag.NewFlagSet("api", flag.ContinueOnError)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package cmd_util
|
||||
|
||||
import "github.com/admin-else/strom/mc/api"
|
||||
import "git.anygate.cloud/anygatecloud/strom/mc/api"
|
||||
|
||||
func Account(s string) (a *api.Account, err error) {
|
||||
if len(s) > 16 {
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"os"
|
||||
"slices"
|
||||
|
||||
mcdata "github.com/admin-else/strom/mc/data"
|
||||
"github.com/admin-else/strom/mc/proto_generated"
|
||||
"github.com/admin-else/strom/mc/util"
|
||||
mcdata "git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
)
|
||||
|
||||
// strom data 1.21.11 blocks id 0 name => air
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"log/slog"
|
||||
"os"
|
||||
|
||||
"github.com/admin-else/strom/mc/level/anvil"
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/level/anvil"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
+15
-15
@@ -9,21 +9,21 @@ import (
|
||||
"runtime/debug"
|
||||
"slices"
|
||||
|
||||
"github.com/admin-else/strom/cmd/strom/api"
|
||||
"github.com/admin-else/strom/cmd/strom/data"
|
||||
"github.com/admin-else/strom/cmd/strom/extract_mca"
|
||||
"github.com/admin-else/strom/cmd/strom/mca_to_tmcpr"
|
||||
"github.com/admin-else/strom/cmd/strom/messenger"
|
||||
"github.com/admin-else/strom/cmd/strom/offline_uuid"
|
||||
"github.com/admin-else/strom/cmd/strom/packet_info"
|
||||
"github.com/admin-else/strom/cmd/strom/packet_inspector"
|
||||
"github.com/admin-else/strom/cmd/strom/print_nbt"
|
||||
"github.com/admin-else/strom/cmd/strom/print_replay"
|
||||
// "github.com/admin-else/strom/cmd/strom/raw_capture" // removed: use tcpflow instead for raw TCP capture
|
||||
"github.com/admin-else/strom/cmd/strom/raw_to_tmcpr"
|
||||
"github.com/admin-else/strom/cmd/strom/serve_tmcpr"
|
||||
"github.com/admin-else/strom/cmd/strom/serve_world"
|
||||
"github.com/admin-else/strom/cmd/strom/status"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/api"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/extract_mca"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/mca_to_tmcpr"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/messenger"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/offline_uuid"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/packet_info"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/packet_inspector"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/print_nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/print_replay"
|
||||
// "git.anygate.cloud/anygatecloud/strom/cmd/strom/raw_capture" // removed: use tcpflow instead for raw TCP capture
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/raw_to_tmcpr"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/serve_tmcpr"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/serve_world"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/status"
|
||||
)
|
||||
|
||||
var ExpectedASubcommandErr = errors.New("expected a subcommand")
|
||||
|
||||
@@ -8,12 +8,12 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/admin-else/strom/mc/level"
|
||||
"github.com/admin-else/strom/mc/level/anvil"
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"github.com/admin-else/strom/mc/proto/replay"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
|
||||
"github.com/admin-else/strom/mc/util"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/level"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/level/anvil"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto/replay"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
+10
-10
@@ -7,16 +7,16 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/admin-else/strom/cmd/strom/cmd_util"
|
||||
"github.com/admin-else/strom/mc/bot/chat"
|
||||
"github.com/admin-else/strom/mc/bot/keepalive"
|
||||
"github.com/admin-else/strom/mc/bot/world"
|
||||
"github.com/admin-else/strom/mc/client"
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"github.com/admin-else/strom/mc/event"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/cmd/strom/cmd_util"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/bot/chat"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/bot/keepalive"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/bot/world"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/client"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/event"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_8"
|
||||
)
|
||||
|
||||
func stror(a, b string) string {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
"github.com/admin-else/strom/mc/crypto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/crypto"
|
||||
)
|
||||
|
||||
var cmd = flag.NewFlagSet("offline-uuid", flag.ContinueOnError)
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated"
|
||||
)
|
||||
|
||||
var cmd = flag.NewFlagSet("packet-info", flag.ContinueOnError)
|
||||
|
||||
@@ -7,15 +7,15 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/admin-else/strom/mc/api"
|
||||
"github.com/admin-else/strom/mc/client"
|
||||
"github.com/admin-else/strom/mc/event"
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
|
||||
"github.com/admin-else/strom/mc/server"
|
||||
"github.com/admin-else/strom/mc/text"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/api"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/client"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/event"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/server"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/text"
|
||||
)
|
||||
|
||||
var Cmd = flag.NewFlagSet("packet-inspector", flag.ContinueOnError)
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/%v"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/%v"
|
||||
)
|
||||
|
||||
// Error: %v
|
||||
|
||||
@@ -15,8 +15,8 @@ import (
|
||||
"reflect"
|
||||
"strings"
|
||||
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -28,8 +28,6 @@ var (
|
||||
DirectionFlag = cmd.String("direction", "clientbound", "Packet direction: clientbound (ToClient) or serverbound (ToServer)")
|
||||
)
|
||||
|
||||
// TODO: maybe use the proto replay api
|
||||
|
||||
//go:embed failed_packet.go.tmpl
|
||||
var TestSrcF string
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
// Error: index not found
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
// Error: unexpected EOF
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
// Error: unexpected EOF
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
// Error: unexpected EOF
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
// Error: unexpected EOF
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
// Error: unexpected EOF
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
// Error: unexpected EOF
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
// Error: unexpected EOF
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
// Decode regression: recipe_book_add (26.2) - SlotDisplay type fix
|
||||
|
||||
@@ -3,7 +3,7 @@ package failed_packets_test
|
||||
import (
|
||||
"bytes"
|
||||
"testing"
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
// Decode regression: declare_commands (26.2) - bitfield + extraNodeData fix
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v1_8"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_8"
|
||||
)
|
||||
|
||||
// Decode regression: spawn_entity_living (1.8) - entityMetadata mergeCompareTo
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v1_8"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_8"
|
||||
)
|
||||
|
||||
// Decode regression: entity_equipment (1.8) - nbt TAG_End fix
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v1_8"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_8"
|
||||
)
|
||||
|
||||
// Decode regression: entity_metadata (1.8) - entityMetadataLoop mergeCompareTo
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
generated "github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
generated "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
// Decode regression: entity_equipment (26.2) - topBitSetTerminatedArray
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/admin-else/strom/mc/proto/replay"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto/replay"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
)
|
||||
|
||||
var Cmd = flag.NewFlagSet("raw-to-tmcpr", flag.ContinueOnError)
|
||||
|
||||
@@ -9,11 +9,11 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/admin-else/strom/mc/event"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto/replay"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
|
||||
"github.com/admin-else/strom/mc/server"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/event"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto/replay"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/server"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
|
||||
@@ -8,14 +8,14 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/admin-else/strom/mc/event"
|
||||
"github.com/admin-else/strom/mc/level"
|
||||
"github.com/admin-else/strom/mc/level/anvil"
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
|
||||
"github.com/admin-else/strom/mc/server"
|
||||
"github.com/admin-else/strom/mc/util"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/event"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/level"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/level/anvil"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/server"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
|
||||
@@ -6,11 +6,11 @@ import (
|
||||
"log/slog"
|
||||
"time"
|
||||
|
||||
"github.com/admin-else/strom/mc/client"
|
||||
"github.com/admin-else/strom/mc/event"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/client"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/event"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
|
||||
)
|
||||
|
||||
var cmd = flag.NewFlagSet("status", flag.ContinueOnError)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/admin-else/strom
|
||||
module git.anygate.cloud/anygatecloud/strom
|
||||
|
||||
go 1.26.2
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/admin-else/strom/mc/crypto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/crypto"
|
||||
)
|
||||
|
||||
// NewOfflineAccount creates an offline-mode Account with a UUID derived from the
|
||||
|
||||
+4
-4
@@ -12,10 +12,10 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/admin-else/strom/mc/api"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/api"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_8"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package keepalive
|
||||
|
||||
import (
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
|
||||
)
|
||||
|
||||
type mod struct {
|
||||
|
||||
+3
-3
@@ -5,9 +5,9 @@ import (
|
||||
"errors"
|
||||
"sync"
|
||||
|
||||
"github.com/admin-else/strom/mc/level"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/level"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
+4
-4
@@ -5,10 +5,10 @@ import (
|
||||
"errors"
|
||||
"net"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/server"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/server"
|
||||
)
|
||||
|
||||
// Connect connects to the given address note that it does not resolve the SRV records it's just a raw net.Dial
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/admin-else/strom/mc/event"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/event"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
|
||||
)
|
||||
|
||||
type ConfigIgnorer struct {
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"net"
|
||||
"strconv"
|
||||
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
|
||||
)
|
||||
|
||||
// MakeHandshakePacket creates a handshake packet using the connection's remote address as the server host.
|
||||
|
||||
+10
-10
@@ -9,16 +9,16 @@ import (
|
||||
"errors"
|
||||
"net"
|
||||
|
||||
"github.com/admin-else/strom/mc/api"
|
||||
"github.com/admin-else/strom/mc/crypto"
|
||||
"github.com/admin-else/strom/mc/event"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_16_5"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_8"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
"github.com/admin-else/strom/mc/text"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/api"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/crypto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/event"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_16_5"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/text"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
|
||||
)
|
||||
|
||||
func assertClientSendConvertible(t *testing.T, srcType reflect.Type, name string, state proto_base.State, direction proto_base.Direction, targetVersion int32) {
|
||||
|
||||
+6
-6
@@ -5,12 +5,12 @@ import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"github.com/admin-else/strom/mc/event"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_8"
|
||||
"github.com/admin-else/strom/mc/server"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/event"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/server"
|
||||
)
|
||||
|
||||
type StatusClient struct {
|
||||
|
||||
@@ -3,7 +3,7 @@ package data_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
)
|
||||
|
||||
func TestLookupBiomeById(t *testing.T) {
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
||||
"slices"
|
||||
"strconv"
|
||||
|
||||
"github.com/admin-else/strom/mc/util"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
)
|
||||
|
||||
// {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
)
|
||||
|
||||
func TestLookupBlockByStateId(t *testing.T) {
|
||||
|
||||
@@ -3,7 +3,7 @@ package data_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
)
|
||||
|
||||
func TestLookUpProtocolVersion(t *testing.T) {
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package data
|
||||
import (
|
||||
"embed"
|
||||
|
||||
nbt2 "github.com/admin-else/strom/mc/nbt"
|
||||
nbt2 "git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
)
|
||||
|
||||
// TODO: this is stupid loginPacket.json exists next version migrate to that
|
||||
|
||||
@@ -3,7 +3,7 @@ package gen
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
)
|
||||
|
||||
type NoiseParam int
|
||||
|
||||
@@ -3,7 +3,7 @@ package gen
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
)
|
||||
|
||||
func TestBiomeNoise_SampleBiome(t *testing.T) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package anvil_test
|
||||
|
||||
import (
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
|
||||
)
|
||||
|
||||
// in seperate file not to lag my ide
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"strings"
|
||||
"unsafe"
|
||||
|
||||
data2 "github.com/admin-else/strom/mc/data"
|
||||
level2 "github.com/admin-else/strom/mc/level"
|
||||
"github.com/admin-else/strom/mc/util"
|
||||
data2 "git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
level2 "git.anygate.cloud/anygatecloud/strom/mc/level"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
)
|
||||
|
||||
type Chunk struct {
|
||||
|
||||
@@ -3,7 +3,7 @@ package anvil
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
)
|
||||
|
||||
type Level struct {
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/admin-else/strom/mc/level"
|
||||
anvil2 "github.com/admin-else/strom/mc/level/anvil"
|
||||
"github.com/admin-else/strom/mc/util"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/level"
|
||||
anvil2 "git.anygate.cloud/anygatecloud/strom/mc/level/anvil"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
)
|
||||
|
||||
func TestLevel(t *testing.T) {
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
)
|
||||
|
||||
type CompressionStrategy uint8
|
||||
|
||||
@@ -7,10 +7,10 @@ import (
|
||||
"strings"
|
||||
"unsafe"
|
||||
|
||||
data2 "github.com/admin-else/strom/mc/data"
|
||||
"github.com/admin-else/strom/mc/level"
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"github.com/admin-else/strom/mc/util"
|
||||
data2 "git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/level"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
"github.com/go-viper/mapstructure/v2"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"embed"
|
||||
"testing"
|
||||
|
||||
data2 "github.com/admin-else/strom/mc/data"
|
||||
"github.com/admin-else/strom/mc/level/litematic"
|
||||
data2 "git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/level/litematic"
|
||||
)
|
||||
|
||||
//go:embed testdata
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.com/admin-else/strom/mc/level"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/level"
|
||||
)
|
||||
|
||||
func FuzzReadChunkFromChunkPacketData(f *testing.F) {
|
||||
|
||||
+3
-3
@@ -7,9 +7,9 @@ import (
|
||||
"log/slog"
|
||||
"math"
|
||||
|
||||
data2 "github.com/admin-else/strom/mc/data"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/util"
|
||||
data2 "git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
)
|
||||
|
||||
type BlockState struct {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
||||
"math"
|
||||
"slices"
|
||||
|
||||
"github.com/admin-else/strom/mc/util"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
)
|
||||
|
||||
type StorageFormat struct {
|
||||
|
||||
@@ -3,7 +3,7 @@ package level_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/admin-else/strom/mc/level"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/level"
|
||||
)
|
||||
|
||||
func heightmapFormat() level.StorageFormat {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package structure
|
||||
|
||||
import (
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"github.com/go-viper/mapstructure/v2"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("00\x000\x000")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("00A")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("00\x000\b0000000000000000000000000000000000000000000000000000000012789ABC")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("00\x000\b000000000\x9d0000000000000000000000000000000000000000000000012789AB")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("00\x00\x00\x000")
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("00\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x020000000000000000000\x0200000000000000000\x0200000000000000000")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("000\xcf\xff\xff\xe88")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("00A\x00")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("00\x000")
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
|
||||
"github.com/admin-else/strom/mc/util"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
)
|
||||
|
||||
func (f *Format) decode(m map[string]any, target reflect.Value) error {
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"github.com/admin-else/strom/mc/mapstructure"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/mapstructure"
|
||||
)
|
||||
|
||||
var Format = mapstructure.NewFormat("nbt", mapstructure.WithRequireAll(), mapstructure.WithTrySnakeCase(), mapstructure.WithTryLowCase())
|
||||
|
||||
@@ -12,10 +12,10 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"github.com/admin-else/strom/mc/event"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/event"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"math"
|
||||
"testing"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/google/go-cmp/cmp/cmpopts"
|
||||
)
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated"
|
||||
)
|
||||
|
||||
func TestPacketRoundTripAllVersions(t *testing.T) {
|
||||
|
||||
@@ -3,8 +3,8 @@ package proto
|
||||
import (
|
||||
"reflect"
|
||||
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated"
|
||||
)
|
||||
|
||||
type PidEtc struct {
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
"net"
|
||||
"sync"
|
||||
|
||||
"github.com/admin-else/strom/mc/crypto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/crypto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
)
|
||||
|
||||
type RawConn struct {
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"io"
|
||||
"reflect"
|
||||
|
||||
proto2 "github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
proto2 "git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
)
|
||||
|
||||
type Reader struct {
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"encoding/binary"
|
||||
"io"
|
||||
|
||||
proto2 "github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
proto2 "git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
)
|
||||
|
||||
type Writer struct {
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"reflect"
|
||||
"slices"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
"github.com/admin-else/strom/mc/event"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/event"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated"
|
||||
)
|
||||
|
||||
// SmartConvertibleTo reports whether a value of type from can be recursively converted to type to.
|
||||
|
||||
@@ -4,11 +4,11 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
proto2 "github.com/admin-else/strom/mc/proto"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_9"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
proto2 "git.anygate.cloud/anygatecloud/strom/mc/proto"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_9"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
func TestCanSmartConvert(t *testing.T) {
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("\x05\x000000")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("0")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("00")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("\x040000")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("\x0400000")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("\x86\x00000000")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("")
|
||||
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("80\x00\x01\x05\x01\x010\x01\x00")
|
||||
@@ -1,16 +1,16 @@
|
||||
package proto_generated
|
||||
|
||||
import (
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_8"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_12_2"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_14_4"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_16_5"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_9"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v26_1"
|
||||
"github.com/admin-else/strom/mc/proto_generated/v26_2"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_12_2"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_14_4"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_16_5"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_9"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_1"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
|
||||
)
|
||||
|
||||
var SupportedVersions = []string{"1.8", "1.12.2", "1.14.4", "1.16.5", "1.21.8", "1.21.9", "1.21.11", "26.1", "26.2"}
|
||||
|
||||
@@ -6,8 +6,8 @@ package v1_12_2
|
||||
import (
|
||||
"encoding/binary"
|
||||
"io"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ package v1_14_4
|
||||
import (
|
||||
"encoding/binary"
|
||||
"io"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ package v1_16_5
|
||||
import (
|
||||
"encoding/binary"
|
||||
"io"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ package v1_21_11
|
||||
import (
|
||||
"encoding/binary"
|
||||
"io"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ package v1_21_8
|
||||
import (
|
||||
"encoding/binary"
|
||||
"io"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ package v1_21_9
|
||||
import (
|
||||
"encoding/binary"
|
||||
"io"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ package v1_8
|
||||
import (
|
||||
"encoding/binary"
|
||||
"io"
|
||||
"github.com/admin-else/strom/mc/proto_base"
|
||||
"github.com/admin-else/strom/mc/nbt"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user