Skip to content

RaidWaves 5.46.0 ​

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

Raid waves of Bedrock Edition (https://minecraft.wiki/w/Raid#Raid_wave_composition, Bedrock table): 3 waves on Easy, 5 on Normal and 7 on Hard, whatever the level of the omen (Bedrock has no bonus wave), with a fixed composition per wave and no random extra raiders (13, 26 and 45 mobs in total).

Methods ​

getWave() ​

php
public static function getWave(int $wave) : array

Returns the mobs of a wave (1-based): list of [entity ID, rider entity ID or null, count].

getWaveCount() ​

php
public static function getWaveCount(int $difficulty) : int

Number of waves of a raid started in this difficulty (none in peaceful).

getWaveSize() ​

php
public static function getWaveSize(int $wave) : int

Number of mobs of a wave as shown by the raid bar (ravagers with riders count once).

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