refactor package
This commit is contained in:
22
pkg/protocol/packet/game/server/custom_click_action.go
Normal file
22
pkg/protocol/packet/game/server/custom_click_action.go
Normal file
@ -0,0 +1,22 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/Tnze/go-mc/data/packetid"
|
||||
"github.com/Tnze/go-mc/nbt"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type CustomClickAction struct {
|
||||
ID string `mc:"Identifier"`
|
||||
Payload nbt.RawMessage `mc:"NBT"`
|
||||
}
|
||||
|
||||
func (CustomClickAction) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundCustomClickAction
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ServerboundCustomClickAction, func() ServerboundPacket {
|
||||
return &CustomClickAction{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user