refactor package
This commit is contained in:
19
pkg/protocol/packet/game/server/move_player_pos.go
Normal file
19
pkg/protocol/packet/game/server/move_player_pos.go
Normal file
@ -0,0 +1,19 @@
|
||||
package server
|
||||
|
||||
import "github.com/Tnze/go-mc/data/packetid"
|
||||
|
||||
//codec:gen
|
||||
type MovePlayerPos struct {
|
||||
X, FeetY, Z float64
|
||||
Flags int8
|
||||
}
|
||||
|
||||
func (MovePlayerPos) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundMovePlayerPos
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ServerboundMovePlayerPos, func() ServerboundPacket {
|
||||
return &MovePlayerPos{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user