public class DuelQueueRunnable extends java.lang.Object implements QueueRunnable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RANKED_QUEUE |
Constructor and Description |
---|
DuelQueueRunnable(StrikePractice plugin,
Player p,
BattleKit kit,
boolean premium) |
Modifier and Type | Method and Description |
---|---|
int |
getCounter() |
int |
getCurrentElo() |
int |
getFromRange()
Range1 (the "from range")
|
BattleKit |
getKit() |
Player |
getPlayer() |
int |
getRange() |
static DuelQueueRunnable |
getRanked(Player p) |
int |
getToRange()
Range2 (the "to range")
|
java.util.UUID |
getUUID() |
boolean |
isAnyone() |
boolean |
isPremium() |
boolean |
isValidQueue() |
void |
run() |
void |
setAnyone(boolean anyone) |
void |
setCounter(int counter) |
void |
setRange(int range) |
public static final java.lang.String RANKED_QUEUE
public DuelQueueRunnable(StrikePractice plugin, Player p, BattleKit kit, boolean premium)
public void run()
run
in interface java.lang.Runnable
public static DuelQueueRunnable getRanked(Player p)
public Player getPlayer()
public boolean isValidQueue()
isValidQueue
in interface QueueRunnable
public int getCurrentElo()
getCurrentElo
in interface QueueRunnable
public boolean isPremium()
public int getRange()
getRange
in interface QueueRunnable
public BattleKit getKit()
getKit
in interface QueueRunnable
public void setRange(int range)
setRange
in interface QueueRunnable
public boolean isAnyone()
isAnyone
in interface QueueRunnable
public void setAnyone(boolean anyone)
setAnyone
in interface QueueRunnable
public int getCounter()
getCounter
in interface QueueRunnable
public void setCounter(int counter)
setCounter
in interface QueueRunnable
public int getFromRange()
getFromRange
in interface QueueRunnable
public int getToRange()
getToRange
in interface QueueRunnable
public java.util.UUID getUUID()