FireworkRocketEntity
Link to fireworkrocketentity
Importare la Classe
Link to importare-la-classe
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.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
Interfacce Implementate
Link to interfacce-implementate
FireworkRocketEntity implements the following interfaces. That means all methods defined in these interfaces are also available in FireworkRocketEntity
Constructors
Link to constructors
ZenScript Copynew 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>);
Parametro | Tipo | Descrizione |
---|---|---|
Parametro level | Tipo Level | Descrizione The level the entity is in. |
Parametro x | Tipo double | Descrizione The x position of the entity. |
Parametro y | Tipo double | Descrizione The y position of the entity. |
Parametro z | Tipo double | Descrizione The z position of the entity. |
Parametro stack | Tipo ItemStack | Descrizione The optional firework stack. |
Metodi
Link to metodi
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();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome isShotAtAngle | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione Checks whether this firework rocket was shot at an angle or not. |