Skip to content

ShieldDecorationRecipe 5.47.0 ​

final class · pocketmine\crafting\ShieldDecorationRecipe · source

Extends MultiCraftingRecipe

Decorating a shield (client-hardcoded multi recipe "shield_banner", UUID ...00c8): a shield without patterns and a banner make the shield with the banner's base colour and patterns. Both are used up; the shield keeps its damage, name and enchantments (Java ShieldDecorationRecipe). A shield that already has patterns can't take another banner.

Constants ​

MULTI_RECIPE_UUID ​

php
public const MULTI_RECIPE_UUID = "00000000-0000-0000-0000-0000000000c8"

UUID the client uses for this multi recipe. BedrockProtocol doesn't name it; it is the only one of the 14 special_hardcoded.json UUIDs left once the others are matched to the recipe names in BDS (shield_banner_recipeId).

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.