refactor package
This commit is contained in:
17
pkg/protocol/packet/game/client/game_event.go
Normal file
17
pkg/protocol/packet/game/client/game_event.go
Normal file
@ -0,0 +1,17 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"github.com/Tnze/go-mc/data/packetid"
|
||||
)
|
||||
|
||||
var _ ClientboundPacket = (*GameEvent)(nil)
|
||||
|
||||
//codec:gen
|
||||
type GameEvent struct {
|
||||
Event uint8
|
||||
Param float32
|
||||
}
|
||||
|
||||
func (GameEvent) ClientboundPacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundGameEvent
|
||||
}
|
Reference in New Issue
Block a user