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
Copy
import crafttweaker.api.entity.type.projectile.SmallFireball;

Extending Fireball

Link to extending-fireball

SmallFireball extends Fireball. That means all methods available in Fireball are also available in SmallFireball

ZenScript
Copy
new SmallFireball(level as invalid, shooter as LivingEntity, xPower as double, yPower as double, zPower as double) as SmallFireball
new SmallFireball(level, shooter, 0, 1, 2);
ParametroTipoDescrizione
Parametro
level
Tipo
invalid
Descrizione
The level this entity is in.
Parametro
shooter
Tipo
LivingEntity
Descrizione
The entity that created the fireball, used to get the position.
Parametro
xPower
Tipo
double
Descrizione
The x power of the entity.
Parametro
yPower
Tipo
double
Descrizione
The y power of the entity.
Parametro
zPower
Tipo
double
Descrizione
The z power of the entity.
ZenScript
Copy
new SmallFireball(level as invalid, x as double, y as double, z as double, xPower as double, yPower as double, zPower as double) as SmallFireball
new SmallFireball(level, 0, 1, 2, 3, 3, 3);
ParametroTipoDescrizione
Parametro
level
Tipo
invalid
Descrizione
The level this 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
xPower
Tipo
double
Descrizione
The x power of the entity.
Parametro
yPower
Tipo
double
Descrizione
The y power of the entity.
Parametro
zPower
Tipo
double
Descrizione
The z power of the entity.