21 lines
409 B
Go
21 lines
409 B
Go
package client
|
|
|
|
import (
|
|
"git.konjactw.dev/falloutBot/go-mc/data/packetid"
|
|
pk "git.konjactw.dev/falloutBot/go-mc/net/packet"
|
|
)
|
|
|
|
var _ ClientboundPacket = (*LevelEvent)(nil)
|
|
|
|
//codec:gen
|
|
type LevelEvent struct {
|
|
Type int32
|
|
Pos pk.Position
|
|
Data int32
|
|
GlobalEvent bool
|
|
}
|
|
|
|
func (LevelEvent) ClientboundPacketID() packetid.ClientboundPacketID {
|
|
return packetid.ClientboundLevelEvent
|
|
}
|