public class PartySplit extends AbstractFight implements PartyFight, BestOfFight
| Modifier and Type | Field and Description |
|---|---|
java.util.HashSet<java.lang.String> |
alive |
java.util.HashSet<java.lang.String> |
alive2 |
arena, bed1Broken, bed2Broken, blockChanges, blockLimitReached, currentFight, durationLimit, kit, maxBlockChanges, playersInFight, started, statistics| Constructor and Description |
|---|
PartySplit(StrikePractice plugin,
Party party,
BattleKit finalKit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowSpectating()
Gets if specatting is allowed in the fight.
|
boolean |
canStart()
Gets if the fight can be started.
|
void |
forceEnd(java.lang.String reason) |
java.util.HashSet<java.lang.String> |
getAlive1() |
java.util.HashSet<java.lang.String> |
getAlive2() |
BestOf |
getBestOf() |
java.util.List<java.lang.String> |
getOpponents(Player p)
Dead players should be included in the list if online.
|
Party[] |
getParties() |
java.util.HashSet<java.lang.String> |
getTeam1() |
java.util.UUID |
getTeam1BestOfId() |
java.util.HashSet<java.lang.String> |
getTeam2() |
java.util.UUID |
getTeam2BestOfId() |
java.util.List<java.lang.String> |
getTeammates(Player p)
The given player should be included in the list.
|
void |
handleDeath(Player p)
This will be called when the player died
|
boolean |
hasEnded()
Gets if this fight has ended.
|
boolean |
isBreakTime()
Whether the fight is waiting for the arena to reset before next round
|
void |
remove(Player p,
boolean surrendered,
boolean lobby)
Removes the player from this fight entirely — rosters, alive lists and the
current-fight map.
|
void |
setBestOf(BestOf bestOf) |
void |
start()
Starts the actual fight
|
addBlockChange, backToLobby, clearBlockChanges, getArena, getBlockChanges, getBlockChangesMap, getCurrentFight, getDuration, getDurationLimit, getEnded, getFights, getKit, getMaxBlockChanges, getPlayersInFight, getStarted, getStatistics, getStatistics, getStatistics, handleDisappear, isBed1Broken, isBed2Broken, isInFight, resetFightStatisticsForNextRound, setArena, setBed1Broken, setBed2Broken, setCurrentFight, setKit, setMaxBlockChanges, setStartedAfterCountdown, skipRoundCountdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBlockChange, clearBlockChanges, forceEndDelayed, getArena, getBlockChanges, getBlockChangesMap, getDuration, getDurationLimit, getEnded, getFightStatistics, getFightStatistics, getKit, getPlayerNames, getPlayersInFight, getSpectators, getStarted, getStatistics, getStatistics, getStatistics, hasStarted, isActiveFighter, playersAreOpponents, playersAreTeammates, saveFight, setArena, setKit, setStartedAfterCountdown, skipRoundCountdownpublic final java.util.HashSet<java.lang.String> alive
public final java.util.HashSet<java.lang.String> alive2
public boolean canStart()
Fightpublic void start()
Fightstart in interface Fightstart in class AbstractFightpublic void handleDeath(Player p)
FighthandleDeath in interface Fightp - player who died.public Party[] getParties()
getParties in interface PartyFightpublic boolean allowSpectating()
FightallowSpectating in interface Fightpublic java.util.List<java.lang.String> getOpponents(Player p)
FightgetOpponents in interface Fightpublic java.util.List<java.lang.String> getTeammates(Player p)
FightgetTeammates in interface Fightpublic java.util.HashSet<java.lang.String> getAlive1()
public java.util.HashSet<java.lang.String> getAlive2()
public java.util.HashSet<java.lang.String> getTeam1()
public java.util.HashSet<java.lang.String> getTeam2()
public boolean hasEnded()
public BestOf getBestOf()
getBestOf in interface BestOfFightpublic void setBestOf(BestOf bestOf)
setBestOf in interface BestOfFightpublic boolean isBreakTime()
BestOfFightisBreakTime in interface BestOfFightpublic void remove(Player p,
boolean surrendered,
boolean lobby)
FightFight.handleDeath(Player), the player will not
be part of any future rounds of this fight.remove in interface Fightp - player to removesurrendered - true if the removal counts as a loss/forfeit (the opponent
wins a 1v1 and the current round is resolved), false for a
neutral removal (no winner declared where avoidable)lobby - whether to teleport the player to the lobby after removalpublic java.util.UUID getTeam1BestOfId()
public java.util.UUID getTeam2BestOfId()