Class InteractionAction

java.lang.Object
lol.pyr.znpcsplus.api.interaction.InteractionAction

public abstract class InteractionAction extends Object
Base class for all NPC interactions
  • Constructor Details

    • InteractionAction

      protected InteractionAction(long cooldown, long delay, InteractionType interactionType)
      Parameters:
      cooldown - The cooldown of this interaction in seconds
      delay - The delay of this interaction in ticks
      interactionType - The type of this interaction
  • Method Details

    • getUuid

      public UUID 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

      public InteractionType 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