Files
minego/pkg/protocol/component/use_cooldown.go
2025-08-27 20:28:44 +08:00

22 lines
386 B
Go

package component
import (
pk "git.konjactw.dev/falloutBot/go-mc/net/packet"
"git.konjactw.dev/patyhank/minego/pkg/protocol/slot"
)
//codec:gen
type UseCooldown struct {
Seconds float32
CooldownGroup pk.Option[pk.Identifier, *pk.Identifier]
}
func (*UseCooldown) Type() slot.ComponentID {
return 23
}
func (*UseCooldown) ID() string {
return "minecraft:use_cooldown"
}