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