Package etithespirit.orimod.player
Class DamageMarshaller
java.lang.Object
etithespirit.orimod.player.DamageMarshaller
The DamageMarshaller class is responsible for controlling how Damage is applied to Spirits. They should be immune to all impact damage (falling, hitting walls).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
onEntityAttacked
(net.minecraftforge.event.entity.living.LivingAttackEvent evt) Connected to Forge manually.static void
onEntityDamaged
(net.minecraftforge.event.entity.living.LivingDamageEvent evt) Connected to Forge manually.
-
Constructor Details
-
DamageMarshaller
public DamageMarshaller()
-
-
Method Details
-
onEntityAttacked
public static void onEntityAttacked(net.minecraftforge.event.entity.living.LivingAttackEvent evt) Connected to Forge manually. This occurs when the spirit is attacked, and exists mostly for coverage.- Parameters:
evt
- The event forge sends.
-
onEntityDamaged
public static void onEntityDamaged(net.minecraftforge.event.entity.living.LivingDamageEvent evt) Connected to Forge manually. This occurs when the spirit is damaged.- Parameters:
evt
- The event forge sends.
-