Package org.spongepowered.api.raid
Interface Raid
-
public interface Raid
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BossBarbossBar()Gets theBossBarbeing displayed to clients of this raid.Optional<RaidWave>currentWave()Gets the currentRaidWaveof this raid.doublehealth()Gets the health of this raid.voidsetBossBar(BossBar bossBar)Sets theBossBarbeing displayed to clients of this raid.RaidStatusstatus()Gets theRaidStatusof this raid.inttotalWaveAmount()Gets the amount ofwavesthis raid plans to execute.List<RaidWave>waves()Gets all of thewavesthat have occurred or are occurring in this raid.ServerWorldworld()Gets theServerWorldthis raid is taking place in.
-
-
-
Method Detail
-
world
ServerWorld world()
Gets theServerWorldthis raid is taking place in.- Returns:
- The world
-
bossBar
BossBar bossBar()
Gets theBossBarbeing displayed to clients of this raid.- Returns:
- The boss bar
-
setBossBar
void setBossBar(BossBar bossBar)
Sets theBossBarbeing displayed to clients of this raid.- Parameters:
bossBar- The boss bar
-
status
RaidStatus status()
Gets theRaidStatusof this raid.- Returns:
- The raid status
-
currentWave
Optional<RaidWave> currentWave()
Gets the currentRaidWaveof this raid.- Returns:
- The current wave or
Optional.empty()if no waves are currently running
-
waves
List<RaidWave> waves()
Gets all of thewavesthat have occurred or are occurring in this raid.- Returns:
- The waves
-
totalWaveAmount
int totalWaveAmount()
Gets the amount ofwavesthis 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'sLiving.health(). As long as the raider was added to aRaidWaveas part of the health.- Returns:
- The health
-
-