Files
minego/pkg/protocol/packet/game/server/custom_click_action.go
2025-08-27 20:28:44 +08:00

23 lines
493 B
Go

package server
import (
"git.konjactw.dev/falloutBot/go-mc/data/packetid"
"git.konjactw.dev/falloutBot/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{}
})
}