Files
minego/pkg/protocol/packet/game/server/edit_book.go

23 lines
416 B
Go

package server
import "github.com/Tnze/go-mc/data/packetid"
//codec:gen
type EditBook struct {
Slot int32 `mc:"VarInt"`
Entries []string
HasTitle bool
//opt:optional:HasTitle
Title string
}
func (*EditBook) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundEditBook
}
func init() {
registerPacket(packetid.ServerboundEditBook, func() ServerboundPacket {
return &EditBook{}
})
}