Skip to content

BookCloningRecipe 5.47.0 ​

final class · pocketmine\crafting\BookCloningRecipe · source

Extends MultiCraftingRecipe

Copying a written book (client-hardcoded multi recipe): a written book and 1-8 book and quills make one copy per book and quill, one generation further ("copy of original", "copy of copy"). Only originals and copies of originals can be copied. The written book itself is not used up and stays in the grid (Minecraft Wiki, Java BookCloningRecipe::getRemainingItems()), so it isn't one of the ingredients.

Constants ​

MULTI_RECIPE_UUID ​

php
public const MULTI_RECIPE_UUID = "d1ca6b84-338e-4f2f-9c6b-76cc8b4bd98d"

UUID the client uses for this multi recipe (BedrockProtocol MultiRecipe::TYPE_BOOK_CLONING)

Methods ​

computeResults() protected ​

php
protected function computeResults(\pocketmine\crafting\CraftingGrid $grid) : ?array

getIngredientList() ​

php
public function getIngredientList() : array

getIngredientListFor() ​

php
public function getIngredientListFor(\pocketmine\crafting\CraftingGrid $grid) : array

getMultiRecipeUuid() ​

php
public function getMultiRecipeUuid() : string

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