Files
minego/pkg/protocol/packet/game/server/player_action.go

25 lines
474 B
Go

package server
import (
"github.com/Tnze/go-mc/data/packetid"
pk "github.com/Tnze/go-mc/net/packet"
)
//codec:gen
type PlayerAction struct {
Status int32 `mc:"VarInt"`
Location pk.Position
Face int8
Sequence int32 `mc:"VarInt"`
}
func (*PlayerAction) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundPlayerAction
}
func init() {
registerPacket(packetid.ServerboundPlayerAction, func() ServerboundPacket {
return &PlayerAction{}
})
}