FireworkRocketEntity

Link to fireworkrocketentity

Diese Klasse importieren

Link to diese-klasse-importieren

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.entity.type.projectile.FireworkRocketEntity;

Extending Projectile

Link to extending-projectile

FireworkRocketEntity extends Projectile. That means all methods available in Projectile are also available in FireworkRocketEntity

Implemented Interfaces

Link to implemented-interfaces

FireworkRocketEntity implements the following interfaces. That means all methods defined in these interfaces are also available in FireworkRocketEntity

ZenScript
Copy
new FireworkRocketEntity(level as Level, x as double, y as double, z as double, stack as ItemStack) as FireworkRocketEntity
new FireworkRocketEntity(level, 0, 0, 0, <item:minecraft:air>);
ParameterTypeBeschreibung
Parameter
level
Type
Level
Beschreibung
The level the entity is in.
Parameter
x
Type
double
Beschreibung
The x position of the entity.
Parameter
y
Type
double
Beschreibung
The y position of the entity.
Parameter
z
Type
double
Beschreibung
The z position of the entity.
Parameter
stack
Type
Artikel-Stack
Beschreibung
The optional firework stack.

Name: isShotAtAngle

Checks whether this firework rocket was shot at an angle or not.

Returns: true if shot at an angle, false otherwise.
Return Type: boolean

ZenScript
Copy
// FireworkRocketEntity.isShotAtAngle() as boolean

myFireworkRocketEntity.isShotAtAngle();
NameTypeHas GetterHas SetterBeschreibung
Name
isShotAtAngle
Type
boolean
Has Getter
true
Has Setter
false
Beschreibung
Checks whether this firework rocket was shot at an angle or not.