Class LocSwapHRScenario
java.lang.Object
org.bukkit.scheduler.BukkitRunnable
uk.radialbog9.spigot.manhunt.scenario.template.SwapDualGroupScenarioTemplate
uk.radialbog9.spigot.manhunt.scenario.scenarios.LocSwapHRScenario
- All Implemented Interfaces:
Runnable,ScenarioConfigurable
public class LocSwapHRScenario
extends SwapDualGroupScenarioTemplate
implements ScenarioConfigurable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.bukkit.entity.Player>Gets the first set of players (e.g.List<org.bukkit.entity.Player>Gets the second set of players (e.g.voidsetConfig(ScenarioConfiguration config) voidswap(org.bukkit.entity.Player player1, org.bukkit.entity.Player player2) Swaps player 1 with player 2Methods inherited from class uk.radialbog9.spigot.manhunt.scenario.template.SwapDualGroupScenarioTemplate
runMethods inherited from class org.bukkit.scheduler.BukkitRunnable
cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronouslyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.radialbog9.spigot.manhunt.scenario.config.ScenarioConfigurable
getConfig
-
Constructor Details
-
LocSwapHRScenario
public LocSwapHRScenario()
-
-
Method Details
-
setConfig
- Specified by:
setConfigin interfaceScenarioConfigurable
-
swap
public void swap(org.bukkit.entity.Player player1, org.bukkit.entity.Player player2) Description copied from class:SwapDualGroupScenarioTemplateSwaps player 1 with player 2- Specified by:
swapin classSwapDualGroupScenarioTemplate- Parameters:
player1- Player 1 (e.g. runner)player2- Player 2 (e.g. hunter)
-
getPlayerSet1
Description copied from class:SwapDualGroupScenarioTemplateGets the first set of players (e.g. runners)- Specified by:
getPlayerSet1in classSwapDualGroupScenarioTemplate- Returns:
- List of players
-
getPlayerSet2
Description copied from class:SwapDualGroupScenarioTemplateGets the second set of players (e.g. hunters)- Specified by:
getPlayerSet2in classSwapDualGroupScenarioTemplate- Returns:
- List of players
-