Class HealthSwapHRScenario
java.lang.Object
org.bukkit.scheduler.BukkitRunnable
uk.radialbog9.spigot.manhunt.scenario.template.SwapDualGroupScenarioTemplate
uk.radialbog9.spigot.manhunt.scenario.scenarios.HealthSwapHRScenario
- All Implemented Interfaces:
Runnable
,ScenarioConfigurable
public class HealthSwapHRScenario
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.void
setConfig
(ScenarioConfiguration config) void
swap
(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
run
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
Methods inherited from interface uk.radialbog9.spigot.manhunt.scenario.config.ScenarioConfigurable
getConfig
-
Constructor Details
-
HealthSwapHRScenario
public HealthSwapHRScenario()
-
-
Method Details
-
setConfig
- Specified by:
setConfig
in interfaceScenarioConfigurable
-
swap
public void swap(org.bukkit.entity.Player player1, org.bukkit.entity.Player player2) Description copied from class:SwapDualGroupScenarioTemplate
Swaps player 1 with player 2- Specified by:
swap
in classSwapDualGroupScenarioTemplate
- Parameters:
player1
- Player 1 (e.g. runner)player2
- Player 2 (e.g. hunter)
-
getPlayerSet1
Description copied from class:SwapDualGroupScenarioTemplate
Gets the first set of players (e.g. runners)- Specified by:
getPlayerSet1
in classSwapDualGroupScenarioTemplate
- Returns:
- List of players
-
getPlayerSet2
Description copied from class:SwapDualGroupScenarioTemplate
Gets the second set of players (e.g. hunters)- Specified by:
getPlayerSet2
in classSwapDualGroupScenarioTemplate
- Returns:
- List of players
-