SmallFireball
Link to smallfireball
导入类
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 Copyimport 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
Constructor #构造函数
Link to constructor-构造函数
ZenScript Copynew 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);
参数 | 类型 | 描述 |
---|---|---|
参数 level | 类型 invalid | 描述 The level this 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. |
ZenScript Copynew 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);
参数 | 类型 | 描述 |
---|---|---|
参数 level | 类型 invalid | 描述 The level this entity is in. |
参数 x | 类型 double | 描述 The x position of the entity. |
参数 y | 类型 double | 描述 The y position of the entity. |
参数 z | 类型 double | 描述 The z position of the entity. |
参数 xPower | 类型 double | 描述 The x power of the entity. |
参数 yPower | 类型 double | 描述 The y power of the entity. |
参数 zPower | 类型 double | 描述 The z power of the entity. |