Class NpcModifyEvent

java.lang.Object
org.bukkit.event.Event
de.oliver.fancynpcs.api.events.NpcModifyEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class NpcModifyEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Is fired when a NPC is being modified
  • Constructor Details

    • NpcModifyEvent

      public NpcModifyEvent(@NotNull @NotNull Npc npc, @NotNull @NotNull NpcModifyEvent.NpcModification modification, Object newValue, @NotNull @NotNull org.bukkit.command.CommandSender modifier)
  • Method Details

    • getHandlerList

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

      @NotNull public @NotNull Npc getNpc()
      Returns:
      the modified npc
    • getModification

      @NotNull public @NotNull NpcModifyEvent.NpcModification getModification()
      Returns:
      the modification that was being made
    • getNewValue

      @NotNull public @NotNull Object getNewValue()
      Returns:
      the value that is being set
    • getModifier

      @NotNull public @NotNull org.bukkit.command.CommandSender getModifier()
      Returns:
      the sender who modified the npc
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event