Skip to content

LootPool 5.46.0 ​

final class · pocketmine\loot\LootPool · source

A loot pool: rolls (plus bonus rolls scaled by luck) weighted picks among the entries that pass their conditions.

Methods ​

__construct() ​

php
public function __construct(array $entries, \pocketmine\loot\NumberProvider $rolls, \pocketmine\loot\NumberProvider $bonusRolls, ?\Closure $condition, ?\Closure $function)

addRandomItems() ​

php
public function addRandomItems(\Closure $output, \pocketmine\loot\LootContext $context) : void

LootPool.addRandomItems()

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