Initialize Commit
This commit is contained in:
17
codec/component/weapon.go
Normal file
17
codec/component/weapon.go
Normal file
@ -0,0 +1,17 @@
|
||||
package component
|
||||
|
||||
import "git.konjactw.dev/patyhank/minego/codec/data/slot"
|
||||
|
||||
//codec:gen
|
||||
type Weapon struct {
|
||||
DamagePerAttack int32 `mc:"VarInt"`
|
||||
DisableBlockingFor float32 // In seconds
|
||||
}
|
||||
|
||||
func (*Weapon) Type() slot.ComponentID {
|
||||
return 26
|
||||
}
|
||||
|
||||
func (*Weapon) ID() string {
|
||||
return "minecraft:weapon"
|
||||
}
|
Reference in New Issue
Block a user