Class NpcEvent.DamagedEvent

java.lang.Object
net.minecraftforge.fml.common.eventhandler.Event
noppes.npcs.api.event.CustomNPCsEvent
noppes.npcs.api.event.NpcEvent
noppes.npcs.api.event.NpcEvent.DamagedEvent
Enclosing class:
NpcEvent

public static class NpcEvent.DamagedEvent
extends NpcEvent
damaged
  • Field Details

    • damageSource

      public final IDamageSource damageSource
    • source

      public final IEntity source
    • damage

      public float damage
    • clearTarget

      public boolean clearTarget
  • Constructor Details

    • DamagedEvent

      public DamagedEvent​(ICustomNpc npc, net.minecraft.entity.Entity source, float damage, net.minecraft.util.DamageSource damagesource)