Class PlayerEvent.AttackEvent

java.lang.Object
net.minecraftforge.fml.common.eventhandler.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 java.lang.Object target
  • Constructor Details

    • AttackEvent

      public AttackEvent​(IPlayer player, int type, java.lang.Object target)