Initialize Commit
This commit is contained in:
25
codec/component/firework_explosion.go
Normal file
25
codec/component/firework_explosion.go
Normal file
@ -0,0 +1,25 @@
|
||||
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"
|
||||
}
|
Reference in New Issue
Block a user