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