Skip to content

CartographyRenameTransaction 5.47.0 ​

final class · pocketmine\inventory\transaction\CartographyRenameTransaction · source

Extends InventoryTransaction

Renaming a map in the name field of the cartography table (Bedrock) without a map operation: the whole map stack in the input slot is used up and given back renamed, for free. A name given together with an operation is part of the CartographyTransaction instead.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\player\Player $source, \pocketmine\item\Item $input, \pocketmine\item\Item $result, array $actions = [])

getInput() ​

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

getResult() ​

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

validate() ​

php
public function validate() : void

VanillaMine is a fork of PocketMine-MP. Not affiliated with the PMMP team or Mojang.