Class PlayerEvent.AttackEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
noppes.npcs.api.event.CustomNPCsEvent
noppes.npcs.api.event.PlayerEvent
noppes.npcs.api.event.PlayerEvent.AttackEvent
Enclosing class:
PlayerEvent

public static class PlayerEvent.AttackEvent extends PlayerEvent
attack
Will trigger if you have an item and left click into the air or left click a block or left click an entity
  • Field Details

    • type

      public final int type
      0:air, 1:entity, 2:block
    • target

      public final Object target
    • damageSource

      public final IDamageSource damageSource
      The attack event for entities also has the damageSource
  • Constructor Details