Class PlayerEvent.InteractEvent

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

public static class PlayerEvent.InteractEvent
extends PlayerEvent
interact
Will trigger if you have an item and right click into the air Or right click a block Or right 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

    • InteractEvent

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