Skip to content

BannerDuplicateRecipe 5.47.0 ​

final class · pocketmine\crafting\BannerDuplicateRecipe · source

Extends MultiCraftingRecipe

Copying a banner (client-hardcoded multi recipe): a banner with patterns and a blank banner of the same base colour make two banners with those patterns. On Bedrock the patterned banner must come before the blank one in the grid (to the left of it or above it, Minecraft Wiki), and the recipe shows two banners as its result, so both inputs are used up.

Constants ​

MULTI_RECIPE_UUID ​

php
public const MULTI_RECIPE_UUID = "b5c5d105-75a2-4076-af2b-923ea2bf4bf0"

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

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.