Package org.spongepowered.api.raid
Interface Raid
public interface Raid
- 
Method SummaryModifier and TypeMethodDescriptionbossBar()Gets theBossBarbeing displayed to clients of this raid.Gets the currentRaidWaveof this raid.doublehealth()Gets the health of this raid.voidsetBossBar(BossBar bossBar) Sets theBossBarbeing displayed to clients of this raid.status()Gets theRaidStatusof this raid.intGets the amount ofwavesthis raid plans to execute.waves()Gets all of thewavesthat have occurred or are occurring in this raid.world()Gets theServerWorldthis raid is taking place in.
- 
Method Details- 
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
 
- 
setBossBarSets theBossBarbeing displayed to clients of this raid.- Parameters:
- bossBar- The boss bar
 
- 
statusRaidStatus status()Gets theRaidStatusof this raid.- Returns:
- The raid status
 
- 
currentWaveGets the currentRaidWaveof this raid.- Returns:
- The current wave or Optional.empty()if no waves are currently running
 
- 
wavesGets 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
 
 
-