Klasse NpcModifyEvent

java.lang.Object
org.bukkit.event.Event
de.oliver.fancynpcs.api.events.NpcModifyEvent
Alle implementierten Schnittstellen:
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
  • Konstruktordetails

    • NpcModifyEvent

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

    • getHandlerList

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

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

      @NotNull public @NotNull NpcModifyEvent.NpcModification getModification()
      Gibt zurück:
      the modification that was being made
    • getNewValue

      @NotNull public @NotNull Object getNewValue()
      Gibt zurück:
      the value that is being set
    • getModifier

      @NotNull public @NotNull org.bukkit.command.CommandSender getModifier()
      Gibt zurück:
      the sender who modified 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