Klasse NpcInteractEvent

java.lang.Object
org.bukkit.event.Event
de.oliver.fancynpcs.api.events.NpcInteractEvent
Alle implementierten Schnittstellen:
org.bukkit.event.Cancellable

public class NpcInteractEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Is fired when a player interacts with a NPC
  • Konstruktordetails

    • NpcInteractEvent

      public NpcInteractEvent(@NotNull @NotNull Npc npc, @Nullable @Nullable List<String> playerCommands, @Nullable @Nullable List<String> serverCommands, @NotNull @NotNull Consumer<org.bukkit.entity.Player> onClick, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull NpcInteractEvent.InteractionType interactionType)
  • Methodendetails

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getNpc

      @NotNull public @NotNull Npc getNpc()
      Gibt zurück:
      the modified npc
    • getPlayerCommands

      @Nullable public @Nullable List<String> getPlayerCommands()
      Gibt zurück:
      the commands that the player will be forced to run
    • getServerCommands

      @Nullable public @Nullable List<String> getServerCommands()
      Gibt zurück:
      the commands that the server will run
    • getOnClick

      @NotNull public @NotNull Consumer<org.bukkit.entity.Player> getOnClick()
      Gibt zurück:
      the custom on click method that will run
    • getInteractionType

      @NotNull public @NotNull NpcInteractEvent.InteractionType getInteractionType()
      Gibt zurück:
      returns interaction type
    • getPlayer

      @NotNull public @NotNull org.bukkit.entity.Player getPlayer()
      Gibt zurück:
      the player who interacted with the npc
    • isCancelled

      public boolean isCancelled()
      Angegeben von:
      isCancelled in Schnittstelle org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Angegeben von:
      setCancelled in Schnittstelle org.bukkit.event.Cancellable
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Angegeben von:
      getHandlers in Klasse org.bukkit.event.Event