Add support for protocol version 1.21.100 (#12)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user