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