Package org.spongepowered.api.raid
Interface Raid
-
public interface Raid
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BossBar
bossBar()
Gets theBossBar
being displayed to clients of this raid.Optional<RaidWave>
currentWave()
Gets the currentRaidWave
of this raid.double
health()
Gets the health of this raid.void
setBossBar​(BossBar bossBar)
Sets theBossBar
being displayed to clients of this raid.RaidStatus
status()
Gets theRaidStatus
of this raid.int
totalWaveAmount()
Gets the amount ofwaves
this raid plans to execute.List<RaidWave>
waves()
Gets all of thewaves
that have occurred or are occurring in this raid.ServerWorld
world()
Gets theServerWorld
this raid is taking place in.
-
-
-
Method Detail
-
world
ServerWorld world()
Gets theServerWorld
this raid is taking place in.- Returns:
- The world
-
bossBar
BossBar bossBar()
Gets theBossBar
being displayed to clients of this raid.- Returns:
- The boss bar
-
setBossBar
void setBossBar​(BossBar bossBar)
Sets theBossBar
being displayed to clients of this raid.- Parameters:
bossBar
- The boss bar
-
status
RaidStatus status()
Gets theRaidStatus
of this raid.- Returns:
- The raid status
-
currentWave
Optional<RaidWave> currentWave()
Gets the currentRaidWave
of this raid.- Returns:
- The current wave or
Optional.empty()
if no waves are currently running
-
waves
List<RaidWave> waves()
Gets all of thewaves
that have occurred or are occurring in this raid.- Returns:
- The waves
-
totalWaveAmount
int totalWaveAmount()
Gets the amount ofwaves
this raid plans to execute.In vanilla, a raid determines wave amounts based on difficulty:
Keep in mind that wave amount will be affected by waves added by plugins- Returns:
- The total wave amount
-
health
double health()
Gets the health of this raid. Health is calculated by the sum of all of theRaider's
Living.health()
. As long as the raider was added to aRaidWave
as part of the health.- Returns:
- The health
-
-