FireworkRocketEntity
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.
import crafttweaker.api.entity.type.projectile.FireworkRocketEntity;
Extending Projectile
FireworkRocketEntity extends Projectile. That means all methods available in Projectile are also available in FireworkRocketEntity
Implemented Interfaces
FireworkRocketEntity implements the following interfaces. That means all methods defined in these interfaces are also available in FireworkRocketEntity
Constructors
new FireworkRocketEntity(level as Level, x as double, y as double, z as double, stack as ItemStack) as FireworkRocketEntitynew FireworkRocketEntity(level, 0, 0, 0, <item:minecraft:air>);
Parameter | Type | Description |
---|---|---|
Parameter level | Type Level | Description The level the entity is in. |
Parameter x | Type double | Description The x position of the entity. |
Parameter y | Type double | Description The y position of the entity. |
Parameter z | Type double | Description The z position of the entity. |
Parameter stack | Type ItemStack | Description The optional firework stack. |
Methods
Checks whether this firework rocket was shot at an angle or not.
Returns: true if shot at an angle, false otherwise.
Return Type: boolean
// FireworkRocketEntity.isShotAtAngle() as boolean
myFireworkRocketEntity.isShotAtAngle();
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name isShotAtAngle | Type boolean | Has Getter true | Has Setter false | Description Checks whether this firework rocket was shot at an angle or not. |