AnvilResult 5.46.0
What an anvil makes from its two slots: the item, the experience level cost and how many material items it uses.
Methods
__construct()
php
public function __construct(\pocketmine\item\Item $result, int $xpCost, int $materialUsed)getMaterialUsed()
php
public function getMaterialUsed() : intNumber of items taken from the material slot (0 when there is none).
getResult()
php
public function getResult() : \pocketmine\item\ItemgetXpCost()
php
public function getXpCost() : int