refactor package
This commit is contained in:
42
pkg/protocol/component/trim.go
Normal file
42
pkg/protocol/component/trim.go
Normal file
@ -0,0 +1,42 @@
|
||||
package component
|
||||
|
||||
import (
|
||||
"git.konjactw.dev/patyhank/minego/pkg/protocol/slot"
|
||||
"github.com/Tnze/go-mc/chat"
|
||||
pk "github.com/Tnze/go-mc/net/packet"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type Trim struct {
|
||||
TrimMaterial TrimMaterial
|
||||
TrimPattern TrimPattern
|
||||
}
|
||||
|
||||
//codec:gen
|
||||
type TrimMaterial struct {
|
||||
Suffix string
|
||||
Overrides []TrimOverride
|
||||
Description chat.Message
|
||||
}
|
||||
|
||||
//codec:gen
|
||||
type TrimOverride struct {
|
||||
MaterialType pk.Identifier
|
||||
OverrideAssetName string
|
||||
}
|
||||
|
||||
//codec:gen
|
||||
type TrimPattern struct {
|
||||
AssetName string
|
||||
TemplateItem int32 `mc:"VarInt"`
|
||||
Description chat.Message
|
||||
Decal bool
|
||||
}
|
||||
|
||||
func (*Trim) Type() slot.ComponentID {
|
||||
return 47
|
||||
}
|
||||
|
||||
func (*Trim) ID() string {
|
||||
return "minecraft:trim"
|
||||
}
|
Reference in New Issue
Block a user