CartographyTransaction 5.46.0
Extends InventoryTransaction
A map operation of the cartography table (see CartographyMapRecipe). One map and one item of the additional slot are used up; zooming out and locking create the new map data once the transaction goes through.
Methods
__construct()
php
public function __construct(\pocketmine\player\Player $source, \pocketmine\crafting\CartographyMapRecipe $recipe, \pocketmine\item\Item $input, \pocketmine\item\Item $additional, \pocketmine\item\Item $result, array $actions = [])execute()
php
public function execute() : voidgetRecipe()
php
public function getRecipe() : \pocketmine\crafting\CartographyMapRecipegetResult()
php
public function getResult() : \pocketmine\item\Itemvalidate()
php
public function validate() : void