refactor package
This commit is contained in:
22
pkg/protocol/packet/game/server/edit_book.go
Normal file
22
pkg/protocol/packet/game/server/edit_book.go
Normal file
@ -0,0 +1,22 @@
|
||||
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{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user