Импорт класса

Link to импорт-класса

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.LargeFireball;

Extending Fireball

Link to extending-fireball

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

ZenScript
Copy
new LargeFireball(level as invalid, shooter as LivingEntity, xPower as double, yPower as double, zPower as double) as LargeFireball
new LargeFireball(level, shooter, 0, 1, 2);
ПараметрТипОписание
Параметр
level
Тип
invalid
Описание
The level the entity is in.
Параметр
shooter
Тип
LivingEntity
Описание
The entity that created the fireball, used to get the position.
Параметр
xPower
Тип
double
Описание
The x power of the entity.
Параметр
yPower
Тип
double
Описание
The y power of the entity.
Параметр
zPower
Тип
double
Описание
The z power of the entity.