public class WauzPlayerResourceBossBar extends WauzPlayerBossBar
| Modifier and Type | Field and Description |
|---|---|
private WauzResourceCache |
resource
The resource, this bar belongs to.
|
bossBar, bossBarPlayerLinks, bossBars, maxHealth, modifiers, uuid| Constructor and Description |
|---|
WauzPlayerResourceBossBar(WauzResourceCache resource)
Creates a boss bar for the given resource.
|
| 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(WauzResourceCache resource) |
protected double |
getHealth() |
protected java.lang.String |
getName() |
addPlayer, clearBar, destroy, getTitle, inDistance, removePlayer, updateBossBarprivate WauzResourceCache resource
public WauzPlayerResourceBossBar(WauzResourceCache resource)
resource - The resource, this bar belongs to.WauzPlayerBossBar.doPlayerChecks()public static WauzPlayerBossBar getBossBar(WauzResourceCache resource)
resource - A resource 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