FireworkExplosionShape
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.item.component.FireworkExplosionShape;
Implements
FireworkExplosionShape
implements the following interfaces:
Undocumented Interfaces
IExtensibleEnum
,Comparable<Enum>
Enum Constants
FireworkExplosionShape is an enum with 5 constants. They are accessible like so:
// FireworkExplosionShape.BURST<constant:minecraft:firework_explosion/shape:burst>// FireworkExplosionShape.CREEPER<constant:minecraft:firework_explosion/shape:creeper>// FireworkExplosionShape.LARGE_BALL<constant:minecraft:firework_explosion/shape:large_ball>// FireworkExplosionShape.SMALL_BALL<constant:minecraft:firework_explosion/shape:small_ball>// FireworkExplosionShape.STAR<constant:minecraft:firework_explosion/shape:star>
Members
Getter
// Shape.id as int<constant:minecraft:firework_explosion/shape:burst>.id
Return Type:
int
Getter
// Shape.name as MutableComponent<constant:minecraft:firework_explosion/shape:burst>.name
Return Type:
MutableComponent
Getter
Gets the serialized name.script.zs
// Shape.serializedName as string<constant:minecraft:firework_explosion/shape:burst>.serializedName
Return Type:
string
serializedName() as string
Gets the serialized name.script.zs
Returns: the serialized name.
// Shape.serializedName() as string;<constant:minecraft:firework_explosion/shape:burst>.serializedName();
Return Type:
string