Add support for protocol version 1.21.100 (#12)

This commit is contained in:
Akmal Fairuz
2025-08-13 21:37:46 +07:00
committed by GitHub
parent d3fae5d3be
commit d9d8b0bc75
50 changed files with 9667 additions and 135 deletions

View File

@@ -1,9 +1,10 @@
package packbuilder
import (
"strings"
"github.com/df-mc/dragonfly/server/item/category"
"golang.org/x/exp/maps"
"strings"
)
// ComponentBuilder represents a builder that can be used to construct an item components map to be sent to a client.

View File

@@ -1,9 +1,10 @@
package packbuilder
import (
"strings"
"github.com/df-mc/dragonfly/server/item"
"github.com/df-mc/dragonfly/server/world"
"strings"
)
// Components returns all the components of the given custom item. If the item has no components, a nil map and false

View File

@@ -3,14 +3,15 @@ package packbuilder
import (
"encoding/json"
"fmt"
"github.com/df-mc/dragonfly/server/world"
"golang.org/x/image/colornames"
"image"
"image/png"
"os"
"path/filepath"
"strings"
_ "unsafe" // Imported for compiler directives.
"github.com/df-mc/dragonfly/server/world"
"golang.org/x/image/colornames"
)
// buildItems builds all the item-related files for the resource pack. This includes textures, language

View File

@@ -2,12 +2,13 @@ package packbuilder
import (
"encoding/json"
"github.com/google/uuid"
"github.com/sandertv/gophertunnel/minecraft/resource"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/google/uuid"
"github.com/sandertv/gophertunnel/minecraft/resource"
)
// buildManifest creates a JSON manifest file for the client to be able to read the resource pack. It creates

View File

@@ -1,10 +1,11 @@
package packbuilder
import (
"os"
"github.com/df-mc/dragonfly/server/world"
"github.com/rogpeppe/go-internal/dirhash"
"github.com/sandertv/gophertunnel/minecraft/resource"
"os"
)
// BuildResourcePack builds a resource pack based on custom features that have been registered to the server.