FireworkExplosion

Link to fireworkexplosion

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.item.component.FireworkExplosion;

Extending Record

Link to extending-record

FireworkExplosion extends Record. That means all methods available in Record are also available in FireworkExplosion

Name: of

Return Type: FireworkExplosion

ZenScript
Copy
FireworkExplosion.of(shape as FireworkExplosionShape, colors as stdlib.List<int?>, fadeColors as stdlib.List<int?>, hasTrail as boolean, hasTwinkle as boolean) as FireworkExplosion
ParameterType
Parameter
shape
Type
FireworkExplosionShape
Parameter
colors
Type
stdlib.List<int?>
Parameter
fadeColors
Type
stdlib.List<int?>
Parameter
hasTrail
Type
boolean
Parameter
hasTwinkle
Type
boolean

Name: withFadeColors

Return Type: FireworkExplosion

ZenScript
Copy
FireworkExplosion.withFadeColors(colors as stdlib.List<int?>) as FireworkExplosion
ParameterType
Parameter
colors
Type
stdlib.List<int?>
NameTypeHas GetterHas Setter
Name
colors
Type
stdlib.List<int?>
Has Getter
true
Has Setter
false
Name
fadeColors
Type
stdlib.List<int?>
Has Getter
true
Has Setter
false
Name
hasTrail
Type
boolean
Has Getter
true
Has Setter
false
Name
hasTwinkle
Type
boolean
Has Getter
true
Has Setter
false
Name
shape
Type
FireworkExplosionShape
Has Getter
true
Has Setter
false