MapCraftingRecipe 5.47.0
Extends MultiCraftingRecipe
The map operations of the crafting grid, which the client knows as hardcoded multi recipes (BedrockProtocol MultiRecipe TYPE_MAP_*; the cartography table has its own UUIDs, see CartographyMapRecipe):
- cloning: a filled map and 1-8 empty maps = that many copies plus one;
- extending: a filled map in the middle of the 3x3 grid with paper on the other 8 cells = the map zoomed out one step (a new, blank map with the next scale);
- upgrading: a filled map and a compass = the map with player markers (locator map). Everything in the grid is used up.
Constants
CLONING
php
public const CLONING = "85939755-ba10-4d9d-a4cc-efb7a8e943c4"EXTENDING
php
public const EXTENDING = "d392b075-4ba1-40ae-8789-af868d56f6ce"UPGRADING
php
public const UPGRADING = "aecd2294-4b94-434b-8667-4499bb2c9327"Methods
__construct()
php
public function __construct(string $uuid)all()
php
public static function all() : arraycomputeResults() protected
php
protected function computeResults(\pocketmine\crafting\CraftingGrid $grid) : ?arraygetIngredientList()
php
public function getIngredientList() : arraygetMultiRecipeUuid()
php
public function getMultiRecipeUuid() : stringonCraftExecuted()
php
public function onCraftExecuted(array $outputs, ?\pocketmine\player\Player $player = null) : void