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
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionNpcModifyEvent(@NotNull Npc npc, @NotNull NpcModifyEvent.NpcModification modification, Object newValue, @NotNull org.bukkit.command.CommandSender modifier) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerList@NotNull NpcModifyEvent.NpcModification@NotNull org.bukkit.command.CommandSender@NotNull Object@NotNull NpcgetNpc()booleanvoidsetCancelled(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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
- Returns:
- the modified npc
-
getModification
- Returns:
- the modification that was being made
-
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:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-