Files
minego/pkg/protocol/packet/game/client/cooldown.go
2025-08-27 20:28:44 +08:00

22 lines
465 B
Go

package client
import (
"git.konjactw.dev/falloutBot/go-mc/data/packetid"
pk "git.konjactw.dev/falloutBot/go-mc/net/packet"
)
var _ ClientboundPacket = (*Cooldown)(nil)
var _ pk.Field = (*Cooldown)(nil)
// CooldownPacket
//
//codec:gen
type Cooldown struct {
CooldownGroup pk.Identifier `mc:"Identifier"`
Duration int32 `mc:"VarInt"`
}
func (Cooldown) ClientboundPacketID() packetid.ClientboundPacketID {
return packetid.ClientboundCooldown
}