refactor package
This commit is contained in:
18
pkg/protocol/component/rabbit_variant.go
Normal file
18
pkg/protocol/component/rabbit_variant.go
Normal file
@ -0,0 +1,18 @@
|
||||
package component
|
||||
|
||||
import (
|
||||
"git.konjactw.dev/patyhank/minego/pkg/protocol/slot"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type RabbitVariant struct {
|
||||
Variant int32 `mc:"VarInt"`
|
||||
}
|
||||
|
||||
func (*RabbitVariant) Type() slot.ComponentID {
|
||||
return 83
|
||||
}
|
||||
|
||||
func (*RabbitVariant) ID() string {
|
||||
return "minecraft:rabbit/variant"
|
||||
}
|
Reference in New Issue
Block a user