Package org.spongepowered.api.raid
Interface Raid
- 
 public interface Raid
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description BossBarbossBar()Gets theBossBarbeing displayed to clients of this raid.java.util.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.java.util.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- 
worldServerWorld world() Gets theServerWorldthis raid is taking place in.- Returns:
- The world
 
 - 
bossBarBossBar bossBar() Gets theBossBarbeing displayed to clients of this raid.- Returns:
- The boss bar
 
 - 
setBossBarvoid setBossBar(BossBar bossBar) Sets theBossBarbeing displayed to clients of this raid.- Parameters:
- bossBar- The boss bar
 
 - 
statusRaidStatus status() Gets theRaidStatusof this raid.- Returns:
- The raid status
 
 - 
currentWavejava.util.Optional<RaidWave> currentWave() Gets the currentRaidWaveof this raid.- Returns:
- The current wave or Optional.empty()if no waves are currently running
 
 - 
wavesjava.util.List<RaidWave> waves() Gets all of thewavesthat have occurred or are occurring in this raid.- Returns:
- The waves
 
 - 
totalWaveAmountint 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
 
 - 
healthdouble 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
 
 
- 
 
-