Skip to content

CartographyTransaction 5.46.0 ​

class · pocketmine\inventory\transaction\CartographyTransaction · source

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() : void

getRecipe() ​

php
public function getRecipe() : \pocketmine\crafting\CartographyMapRecipe

getResult() ​

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

validate() ​

php
public function validate() : void

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