public interface Raid
Modifier and Type | Interface | Description |
---|---|---|
static class |
Raid.RaidStatus |
Represents the status of a
Raid . |
Modifier and Type | Method | Description |
---|---|---|
long |
getActiveTicks() |
Gets the amount of ticks this raid has existed.
|
int |
getBadOmenLevel() |
Gets the Bad Omen level of this raid.
|
Set<UUID> |
getHeroes() |
Get the UUID of all heroes in this raid.
|
Location |
getLocation() |
Gets the center location where the raid occurs.
|
List<Raider> |
getRaiders() |
Gets all remaining
Raider in the present wave. |
int |
getSpawnedGroups() |
Gets the number of raider groups which have spawned.
|
Raid.RaidStatus |
getStatus() |
Gets the current status of the raid.
|
int |
getTotalGroups() |
Gets the number of raider groups which would spawn.
|
float |
getTotalHealth() |
Gets the sum of all raider's health.
|
int |
getTotalWaves() |
Gets the number of waves in this raid (exclude the additional wave).
|
boolean |
isStarted() |
Get whether this raid started.
|
void |
setBadOmenLevel(int badOmenLevel) |
Sets the Bad Omen level.
|
boolean isStarted()
long getActiveTicks()
int getBadOmenLevel()
void setBadOmenLevel(int badOmenLevel)
badOmenLevel
- new Bad Omen level (from 0-5)IllegalArgumentException
- if invalid Bad Omen level@NotNull Location getLocation()
@NotNull Raid.RaidStatus getStatus()
isStarted()
instead.int getSpawnedGroups()
int getTotalGroups()
int getTotalWaves()
float getTotalHealth()
@NotNull Set<UUID> getHeroes()
Copyright © 2020. All rights reserved.