Class VoidblasterEffect
java.lang.Object
com.fs.starfarer.api.impl.combat.threat.VoidblasterEffect
- All Implemented Interfaces:
EveryFrameWeaponEffectPlugin
,DamageDealtModifier
,OnFireEffectPlugin
,OnHitEffectPlugin
public class VoidblasterEffect
extends Object
implements OnHitEffectPlugin, OnFireEffectPlugin, EveryFrameWeaponEffectPlugin, DamageDealtModifier
-
Field Summary
FieldsFields inherited from interface com.fs.starfarer.api.combat.listeners.DamageDealtModifier
EMP_SHIP_SYSTEM_PARAM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount, CombatEngineAPI engine, WeaponAPI weapon) Called before this frame's operations for the weapon - turning, firing, etc.modifyDamageDealt
(Object param, CombatEntityAPI target, DamageAPI damage, org.lwjgl.util.vector.Vector2f point, boolean shieldHit) Modifications to damage should ONLY be made using damage.getModifier().void
onFire
(DamagingProjectileAPI projectile, WeaponAPI weapon, CombatEngineAPI engine) void
onHit
(DamagingProjectileAPI projectile, CombatEntityAPI target, org.lwjgl.util.vector.Vector2f point, boolean shieldHit, ApplyDamageResultAPI damageResult, CombatEngineAPI engine)
-
Field Details
-
weaponId
-
-
Constructor Details
-
VoidblasterEffect
public VoidblasterEffect()
-
-
Method Details
-
advance
Description copied from interface:EveryFrameWeaponEffectPlugin
Called before this frame's operations for the weapon - turning, firing, etc.- Specified by:
advance
in interfaceEveryFrameWeaponEffectPlugin
-
onFire
- Specified by:
onFire
in interfaceOnFireEffectPlugin
-
onHit
public void onHit(DamagingProjectileAPI projectile, CombatEntityAPI target, org.lwjgl.util.vector.Vector2f point, boolean shieldHit, ApplyDamageResultAPI damageResult, CombatEngineAPI engine) - Specified by:
onHit
in interfaceOnHitEffectPlugin
-
modifyDamageDealt
public String modifyDamageDealt(Object param, CombatEntityAPI target, DamageAPI damage, org.lwjgl.util.vector.Vector2f point, boolean shieldHit) Description copied from interface:DamageDealtModifier
Modifications to damage should ONLY be made using damage.getModifier(). param can be: null DamagingProjectileAPI BeamAPI EmpArcEntityAPI Something custom set by a script- Specified by:
modifyDamageDealt
in interfaceDamageDealtModifier
- Returns:
- the id of the stat modification to damage.getModifier(), or null if no modification was made
-