Class DefaultInteractNpcEvent

All Implemented Interfaces:
com.github.juliarn.npclib.api.event.CancellableNpcEvent, com.github.juliarn.npclib.api.event.InteractNpcEvent, com.github.juliarn.npclib.api.event.NpcEvent, com.github.juliarn.npclib.api.event.PlayerNpcEvent

public final class DefaultInteractNpcEvent extends CommonPlayerNpcEvent implements com.github.juliarn.npclib.api.event.InteractNpcEvent
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.github.juliarn.npclib.api.event.InteractNpcEvent

    com.github.juliarn.npclib.api.event.InteractNpcEvent.Hand
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
     
    private final com.github.juliarn.npclib.api.event.InteractNpcEvent.Hand
     

    Fields inherited from class com.github.juliarn.npclib.common.event.CommonPlayerNpcEvent

    player

    Fields inherited from class com.github.juliarn.npclib.common.event.CommonNpcEvent

    npc
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    DefaultInteractNpcEvent(@NotNull com.github.juliarn.npclib.api.Npc<?,?,?,?> npc, @NotNull Object player, @NotNull com.github.juliarn.npclib.api.event.InteractNpcEvent.Hand hand)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    cancelled(boolean cancelled)
     
    @NotNull com.github.juliarn.npclib.api.event.InteractNpcEvent.Hand
     
    static @NotNull com.github.juliarn.npclib.api.event.InteractNpcEvent
    interactNpc(@NotNull com.github.juliarn.npclib.api.Npc<?,?,?,?> npc, @NotNull Object player, @NotNull com.github.juliarn.npclib.api.event.InteractNpcEvent.Hand hand)
     

    Methods inherited from class com.github.juliarn.npclib.common.event.CommonPlayerNpcEvent

    player

    Methods inherited from class com.github.juliarn.npclib.common.event.CommonNpcEvent

    npc

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.github.juliarn.npclib.api.event.NpcEvent

    npc

    Methods inherited from interface com.github.juliarn.npclib.api.event.PlayerNpcEvent

    player
  • Field Details

    • hand

      private final com.github.juliarn.npclib.api.event.InteractNpcEvent.Hand hand
    • cancelled

      private boolean cancelled
  • Constructor Details

    • DefaultInteractNpcEvent

      private DefaultInteractNpcEvent(@NotNull @NotNull com.github.juliarn.npclib.api.Npc<?,?,?,?> npc, @NotNull @NotNull Object player, @NotNull @NotNull com.github.juliarn.npclib.api.event.InteractNpcEvent.Hand hand)
  • Method Details

    • interactNpc

      @NotNull public static @NotNull com.github.juliarn.npclib.api.event.InteractNpcEvent interactNpc(@NotNull @NotNull com.github.juliarn.npclib.api.Npc<?,?,?,?> npc, @NotNull @NotNull Object player, @NotNull @NotNull com.github.juliarn.npclib.api.event.InteractNpcEvent.Hand hand)
    • cancelled

      public boolean cancelled()
      Specified by:
      cancelled in interface com.github.juliarn.npclib.api.event.CancellableNpcEvent
    • cancelled

      public void cancelled(boolean cancelled)
      Specified by:
      cancelled in interface com.github.juliarn.npclib.api.event.CancellableNpcEvent
    • hand

      @NotNull public @NotNull com.github.juliarn.npclib.api.event.InteractNpcEvent.Hand hand()
      Specified by:
      hand in interface com.github.juliarn.npclib.api.event.InteractNpcEvent