Skip to content

RaidBossBar 5.46.0 ​

final class · pocketmine\world\raid\RaidBossBar · source

The red "Raid" bar of a raid. A raid has no entity to attach the bar to, so each player is sent the bar with its own actor ID as the boss (a player sees at most one raid).

Methods ​

getPercent() ​

php
public function getPercent() : float

getTitle() ​

php
public function getTitle() : string

getViewers() ​

php
public function getViewers() : array

hideAll() ​

php
public function hideAll() : void

setPercent() ​

php
public function setPercent(float $percent) : void

setTitle() ​

php
public function setTitle(string $title) : void

setViewers() ​

php
public function setViewers(array $players) : void

Shows the bar to these players and hides it from the others.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.