refactor package
This commit is contained in:
26
pkg/protocol/component/bees.go
Normal file
26
pkg/protocol/component/bees.go
Normal file
@ -0,0 +1,26 @@
|
||||
package component
|
||||
|
||||
import (
|
||||
"git.konjactw.dev/patyhank/minego/pkg/protocol/slot"
|
||||
"github.com/Tnze/go-mc/nbt"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type Bees struct {
|
||||
Bees []Bee
|
||||
}
|
||||
|
||||
//codec:gen
|
||||
type Bee struct {
|
||||
EntityData nbt.RawMessage `mc:"NBT"`
|
||||
TicksInHive int32 `mc:"VarInt"`
|
||||
MinTicksInHive int32 `mc:"VarInt"`
|
||||
}
|
||||
|
||||
func (*Bees) Type() slot.ComponentID {
|
||||
return 68
|
||||
}
|
||||
|
||||
func (*Bees) ID() string {
|
||||
return "minecraft:bees"
|
||||
}
|
Reference in New Issue
Block a user