Class SwapScenarioTemplate

java.lang.Object
org.bukkit.scheduler.BukkitRunnable
uk.radialbog9.spigot.manhunt.scenario.template.SwapScenarioTemplate
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
LocSwapAllScenario, SwapHealthTemplate

public abstract class SwapScenarioTemplate extends org.bukkit.scheduler.BukkitRunnable
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract List<org.bukkit.entity.Player>
    Gets the set of players
    void
    run()
     
    abstract void
    swap(org.bukkit.entity.Player player1, org.bukkit.entity.Player player2)
    Swaps player 1 with player 2

    Methods inherited from class org.bukkit.scheduler.BukkitRunnable

    cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SwapScenarioTemplate

      public SwapScenarioTemplate()
  • Method Details

    • swap

      public abstract void swap(org.bukkit.entity.Player player1, org.bukkit.entity.Player player2)
      Swaps player 1 with player 2
      Parameters:
      player1 - The first player
      player2 - The second player
    • getPlayerSet

      public abstract List<org.bukkit.entity.Player> getPlayerSet()
      Gets the set of players
      Returns:
      List of players
    • run

      public void run()