refactor package
This commit is contained in:
19
pkg/protocol/component/fireworks.go
Normal file
19
pkg/protocol/component/fireworks.go
Normal file
@ -0,0 +1,19 @@
|
||||
package component
|
||||
|
||||
import (
|
||||
"git.konjactw.dev/patyhank/minego/pkg/protocol/slot"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type Fireworks struct {
|
||||
FlightDuration int32 `mc:"VarInt"`
|
||||
Explosions []FireworkExplosionData
|
||||
}
|
||||
|
||||
func (*Fireworks) Type() slot.ComponentID {
|
||||
return 60
|
||||
}
|
||||
|
||||
func (*Fireworks) ID() string {
|
||||
return "minecraft:fireworks"
|
||||
}
|
Reference in New Issue
Block a user