Class InteractionAction
java.lang.Object
lol.pyr.znpcsplus.api.interaction.InteractionAction
Base class for all NPC interactions
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
InteractionAction
(long cooldown, long delay, InteractionType interactionType) -
Method Summary
-
Constructor Details
-
InteractionAction
- Parameters:
cooldown
- The cooldown of this interaction in secondsdelay
- The delay of this interaction in ticksinteractionType
- The type of this interaction
-
-
Method Details
-
getUuid
- Returns:
- The unique ID of this interaction
-
getCooldown
public long getCooldown()- Returns:
- The cooldown of this interaction in seconds
-
getDelay
public long getDelay()- Returns:
- The delay of this interaction in ticks
-
getInteractionType
- Returns:
- The type of this interaction
-
run
public abstract void run(org.bukkit.entity.Player player) Runs this interaction- Parameters:
player
- The player that triggered this interaction
-