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 Copyimport 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
Static Methods
Link to static-methods
Name: of
Return Type: FireworkExplosion
ZenScript CopyFireworkExplosion.of(shape as FireworkExplosionShape, colors as stdlib.List<int?>, fadeColors as stdlib.List<int?>, hasTrail as boolean, hasTwinkle as boolean) as FireworkExplosion
Parameter | Type |
---|---|
Parameter shape | Type FireworkExplosionShape |
Parameter colors | Type stdlib.List<int?> |
Parameter fadeColors | Type stdlib.List<int?> |
Parameter hasTrail | Type boolean |
Parameter hasTwinkle | Type boolean |
Methods
Link to methods
Name: withFadeColors
Return Type: FireworkExplosion
ZenScript CopyFireworkExplosion.withFadeColors(colors as stdlib.List<int?>) as FireworkExplosion
Parameter | Type |
---|---|
Parameter colors | Type stdlib.List<int?> |
Properties
Link to properties
Name | Type | Has Getter | Has 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 |