refactor package
This commit is contained in:
24
pkg/protocol/component/painting_variant.go
Normal file
24
pkg/protocol/component/painting_variant.go
Normal file
@ -0,0 +1,24 @@
|
||||
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 PaintingVariant struct {
|
||||
Width int32
|
||||
Height int32
|
||||
AssetID pk.Identifier
|
||||
Title pk.Option[chat.Message, *chat.Message]
|
||||
Author pk.Option[chat.Message, *chat.Message]
|
||||
}
|
||||
|
||||
func (*PaintingVariant) Type() slot.ComponentID {
|
||||
return 89
|
||||
}
|
||||
|
||||
func (*PaintingVariant) ID() string {
|
||||
return "minecraft:painting/variant"
|
||||
}
|
Reference in New Issue
Block a user