refactor package
This commit is contained in:
19
pkg/protocol/packet/game/server/container_button_click.go
Normal file
19
pkg/protocol/packet/game/server/container_button_click.go
Normal file
@ -0,0 +1,19 @@
|
||||
package server
|
||||
|
||||
import "github.com/Tnze/go-mc/data/packetid"
|
||||
|
||||
//codec:gen
|
||||
type ContainerButtonClick struct {
|
||||
WindowID int32 `mc:"VarInt"`
|
||||
ButtonID int32 `mc:"VarInt"`
|
||||
}
|
||||
|
||||
func (ContainerButtonClick) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundContainerButtonClick
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ServerboundContainerButtonClick, func() ServerboundPacket {
|
||||
return &ContainerButtonClick{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user