AbstractHurtingProjectile
Importing the class
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.
import crafttweaker.api.entity.type.projectile.AbstractHurtingProjectile;
Extending Projectile
AbstractHurtingProjectile extends Projectile. That means all methods available in Projectile are also available in AbstractHurtingProjectile
Methods
Gets the x power of this projectile.
Returns: The x power of this projectile.
Return Type: double
// AbstractHurtingProjectile.getXPower() as double
myAbstractHurtingProjectile.getXPower();
Gets the y power of this projectile.
Returns: The y power of this projectile.
Return Type: double
// AbstractHurtingProjectile.getYPower() as double
myAbstractHurtingProjectile.getYPower();
Gets the z power of this projectile.
Returns: The z power of this projectile.
Return Type: double
// AbstractHurtingProjectile.getZPower() as double
myAbstractHurtingProjectile.getZPower();
Sets the x power of this projectile.
// AbstractHurtingProjectile.setXPower(xPower as double)
myAbstractHurtingProjectile.setXPower(4);
Parameter | Type | Description |
---|---|---|
Parameter xPower | Type double | Description The x power of this projectile. |
Sets the y power of this projectile.
// AbstractHurtingProjectile.setYPower(yPower as double)
myAbstractHurtingProjectile.setYPower(4);
Parameter | Type | Description |
---|---|---|
Parameter yPower | Type double | Description The y power of this projectile. |
Sets the z power of this projectile.
// AbstractHurtingProjectile.setZPower(zPower as double)
myAbstractHurtingProjectile.setZPower(4);
Parameter | Type | Description |
---|---|---|
Parameter zPower | Type double | Description The z power of this projectile. |
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name xPower | Type double | Has Getter true | Has Setter true | Description Gets the x power of this projectile. |
Name yPower | Type double | Has Getter true | Has Setter true | Description Gets the y power of this projectile. |
Name zPower | Type double | Has Getter true | Has Setter true | Description Gets the z power of this projectile. |