Class CommonPlayerNpcEvent

java.lang.Object
com.github.juliarn.npclib.common.event.CommonNpcEvent
com.github.juliarn.npclib.common.event.CommonPlayerNpcEvent
All Implemented Interfaces:
com.github.juliarn.npclib.api.event.NpcEvent, com.github.juliarn.npclib.api.event.PlayerNpcEvent
Direct Known Subclasses:
DefaultAttackNpcEvent, DefaultHideNpcEvent, DefaultInteractNpcEvent, DefaultShowNpcEvent

public abstract class CommonPlayerNpcEvent extends CommonNpcEvent implements com.github.juliarn.npclib.api.event.PlayerNpcEvent
  • Field Details

    • player

      protected final Object player
  • Constructor Details

    • CommonPlayerNpcEvent

      public CommonPlayerNpcEvent(@NotNull @NotNull com.github.juliarn.npclib.api.Npc<?,?,?,?> npc, @NotNull @NotNull Object player)
  • Method Details

    • player

      @NotNull public <P> P player()
      Specified by:
      player in interface com.github.juliarn.npclib.api.event.PlayerNpcEvent