Squashed below commits
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
Go / Test (1.22) (push) Has been cancelled
Go / Test (^1.22) (push) Has been cancelled

nbt chat message

fixes some bug

chunk temp

relocate module

items id
This commit is contained in:
2025-08-26 02:37:53 +08:00
committed by 蒟蒻
parent f0bb92bdb9
commit 185020e31c
210 changed files with 3174 additions and 1749 deletions

View File

@ -3,7 +3,7 @@
package item
import (
"github.com/Tnze/go-mc/level/block"
"git.konjactw.dev/falloutBot/go-mc/level/block"
)
type (
@ -13,7 +13,8 @@ type (
)
{{- range .}}
func ({{.Name | ToGoTypeName}}) ID() string { return {{.Name | printf "%q"}} }
func ({{.Name | ToGoTypeName}}) Name() string { return {{.Name | printf "%q"}} }
func ({{.Name | ToGoTypeName}}) ID() ID { return {{.Id | printf "%d"}} }
{{- end}}
{{- range .}}

View File

@ -9,8 +9,8 @@ import (
"os"
"text/template"
"github.com/Tnze/go-mc/internal/generateutils"
"github.com/Tnze/go-mc/nbt"
"git.konjactw.dev/falloutBot/go-mc/internal/generateutils"
"git.konjactw.dev/falloutBot/go-mc/nbt"
)
//go:embed items.go.tmpl

View File

@ -3,11 +3,12 @@ package item
import (
_ "embed"
"github.com/Tnze/go-mc/level/block"
"git.konjactw.dev/falloutBot/go-mc/level/block"
)
type Item interface {
ID() string
ID() ID
Name() string
}
type BlockItem interface {

File diff suppressed because it is too large Load Diff