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