Class DamageMarshaller

java.lang.Object
etithespirit.orimod.player.DamageMarshaller

public class DamageMarshaller extends Object
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 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.