refactor package
This commit is contained in:
18
pkg/protocol/packet/game/client/player_abilities.go
Normal file
18
pkg/protocol/packet/game/client/player_abilities.go
Normal file
@ -0,0 +1,18 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"github.com/Tnze/go-mc/data/packetid"
|
||||
)
|
||||
|
||||
var _ ClientboundPacket = (*PlayerAbilities)(nil)
|
||||
|
||||
//codec:gen
|
||||
type PlayerAbilities struct {
|
||||
Flags int8
|
||||
FlyingSpeed float32
|
||||
WalkingSpeed float32
|
||||
}
|
||||
|
||||
func (PlayerAbilities) ClientboundPacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundPlayerAbilities
|
||||
}
|
Reference in New Issue
Block a user