Squashed below commits
nbt chat message fixes some bug chunk temp relocate module items id
This commit is contained in:
@ -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 .}}
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
4260
level/item/items.go
4260
level/item/items.go
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user