Class AttackEvent.TypeEffectiveness
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.AttackEvent
com.pixelmonmod.pixelmon.api.events.battles.AttackEvent.TypeEffectiveness
- Enclosing class:
- AttackEvent
Event fired when calculating move effectiveness. This occurs in many places in a battle's turn as
well as in items, AI, and battle messages. As a consequence, this event should never be used for
sending chat of any kind.
- Since:
- June 18, 2019
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.battles.AttackEvent
AttackEvent.CriticalHit, AttackEvent.Damage, AttackEvent.Recoil, AttackEvent.Stab, AttackEvent.TypeEffectiveness, AttackEvent.Use
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.AttackEvent
target, user
Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController
-
Constructor Summary
ConstructorDescriptionTypeEffectiveness
(BattleController battleController, PixelmonWrapper user, PixelmonWrapper target, double effectiveness) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.AttackEvent
getAttack, isSelf
Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
getBattleController
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
TypeEffectiveness
public TypeEffectiveness(BattleController battleController, PixelmonWrapper user, PixelmonWrapper target, double effectiveness)
-
-
Method Details
-
setEffectiveness
-
getEffectiveness
-
getMultiplier
public double getMultiplier()
-