Skip to content

BeaconInventory 5.46.0 ​

final class · pocketmine\block\inventory\BeaconInventory · source

Extends SimpleInventory
Implements BlockInventory, TemporaryInventory

The beacon window: a single payment slot (UI slot 27, container BEACON_PAYMENT) that only accepts one beacon payment item. Anything left in it is given back when the window is closed.

Constants ​

SLOT_PAYMENT ​

php
public const SLOT_PAYMENT = 0

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\Position $holder)

getPayment() ​

php
public function getPayment() : \pocketmine\item\Item

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