RepairItemRecipe 5.47.0
Extends MultiCraftingRecipe
Repairing in the crafting grid (client-hardcoded multi recipe): two items with durability of the same type make one item with the remaining durability of both plus 5% of the maximum (capped at the maximum). The result is a plain item: names and enchantments are lost, except curses, which carry over at the higher level (Minecraft Wiki, Java RepairItemRecipe). No experience is needed.
Constants
MULTI_RECIPE_UUID
php
public const MULTI_RECIPE_UUID = "00000000-0000-0000-0000-000000000001"UUID the client uses for this multi recipe (BedrockProtocol MultiRecipe::TYPE_REPAIR_ITEM)
Methods
computeResults() protected
php
protected function computeResults(\pocketmine\crafting\CraftingGrid $grid) : ?arraygetIngredientList()
php
public function getIngredientList() : arraygetMultiRecipeUuid()
php
public function getMultiRecipeUuid() : string