Class ItemEvent.AttackEvent

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

public static class ItemEvent.AttackEvent extends ItemEvent
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
    • player

      public IPlayer player
    • damageSource

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