public class WauzPlayerEnemyBossBar extends WauzPlayerBossBar
| Modifier and Type | Field and Description |
|---|---|
private org.bukkit.entity.Damageable |
damageable
The entity, this bar belongs to.
|
private SkillParticle |
particle
The particles circling the entity, this bar belongs to.
|
bossBar, bossBarPlayerLinks, bossBars, maxHealth, modifiers, uuid| Constructor and Description |
|---|
WauzPlayerEnemyBossBar(org.bukkit.entity.Entity entity,
java.util.List<MenacingModifier> modifiers,
double maxHealth,
boolean raidBoss)
Creates a boss bar for the given entity.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPlayerChecks()
Schedules a task to check if the object and assigned players are still valid.
|
static WauzPlayerBossBar |
getBossBar(org.bukkit.entity.Entity entity) |
protected double |
getHealth() |
protected java.lang.String |
getName() |
addPlayer, clearBar, destroy, getTitle, inDistance, removePlayer, updateBossBarprivate org.bukkit.entity.Damageable damageable
private SkillParticle particle
public WauzPlayerEnemyBossBar(org.bukkit.entity.Entity entity,
java.util.List<MenacingModifier> modifiers,
double maxHealth,
boolean raidBoss)
entity - The entity, this bar belongs to.modifiers - Menacing modifiers shown in the bar.maxHealth - Max health shown in the bar.raidBoss - If the entity is a raid boss.WauzPlayerBossBar.doPlayerChecks()public static WauzPlayerBossBar getBossBar(org.bukkit.entity.Entity entity)
entity - An entity with a boss bar.protected void doPlayerChecks()
doPlayerChecks in class WauzPlayerBossBarWauzPlayerBossBar.destroy()protected java.lang.String getName()
getName in class WauzPlayerBossBarprotected double getHealth()
getHealth in class WauzPlayerBossBar