Skip to content

RepairItemRecipe 5.47.0 ​

final class · pocketmine\crafting\RepairItemRecipe · source

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) : ?array

getIngredientList() ​

php
public function getIngredientList() : array

getMultiRecipeUuid() ​

php
public function getMultiRecipeUuid() : string

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