26 lines
506 B
Go
26 lines
506 B
Go
package component
|
|
|
|
import "git.konjactw.dev/patyhank/minego/codec/data/slot"
|
|
|
|
//codec:gen
|
|
type FireworkExplosion struct {
|
|
Explosion FireworkExplosionData
|
|
}
|
|
|
|
//codec:gen
|
|
type FireworkExplosionData struct {
|
|
Shape int32 `mc:"VarInt"`
|
|
Colors []int32 `mc:"PrefixedArray"`
|
|
FadeColors []int32 `mc:"PrefixedArray"`
|
|
HasTrail bool
|
|
HasTwinkle bool
|
|
}
|
|
|
|
func (*FireworkExplosion) Type() slot.ComponentID {
|
|
return 59
|
|
}
|
|
|
|
func (*FireworkExplosion) ID() string {
|
|
return "minecraft:firework_explosion"
|
|
}
|