refactor package
This commit is contained in:
20
pkg/protocol/component/use_cooldown.go
Normal file
20
pkg/protocol/component/use_cooldown.go
Normal file
@ -0,0 +1,20 @@
|
||||
package component
|
||||
|
||||
import (
|
||||
"git.konjactw.dev/patyhank/minego/pkg/protocol/slot"
|
||||
pk "github.com/Tnze/go-mc/net/packet"
|
||||
)
|
||||
|
||||
//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"
|
||||
}
|
Reference in New Issue
Block a user