28 lines
531 B
Go
28 lines
531 B
Go
package component
|
|
|
|
import (
|
|
pk "git.konjactw.dev/falloutBot/go-mc/net/packet"
|
|
|
|
"git.konjactw.dev/patyhank/minego/pkg/protocol/slot"
|
|
)
|
|
|
|
//codec:gen
|
|
type WritableBookContent struct {
|
|
Pages []WritableBookPage
|
|
}
|
|
|
|
//codec:gen
|
|
type WritableBookPage struct {
|
|
RawContent string `mc:"String"`
|
|
HasFilteredContent bool
|
|
FilteredContent pk.Option[pk.String, *pk.String]
|
|
}
|
|
|
|
func (*WritableBookContent) Type() slot.ComponentID {
|
|
return 45
|
|
}
|
|
|
|
func (*WritableBookContent) ID() string {
|
|
return "minecraft:writable_book_content"
|
|
}
|