BannerAddPatternRecipe 5.47.0
Extends MultiCraftingRecipe
Adding a pattern to a banner in the crafting grid (client-hardcoded multi recipe; Bedrock still has it besides the loom). The arrangements come from BedrockData banner_patterns.json:
- "shaped" patterns: dyes of one colour on the marked cells of the 3x3 grid, the banner on any other cell;
- "shapeless" patterns: the banner, one dye and the required item (bricks, creeper head, vines, oxeye daisy, enchanted golden apple, wither skeleton skull) anywhere in the grid. Everything in the grid is used up (Java 1.12 BannerAddPatternRecipe, which Bedrock's recipes follow). A banner takes at most 6 patterns.
Constants
MAX_PATTERNS
php
public const MAX_PATTERNS = 6MULTI_RECIPE_UUID
php
public const MULTI_RECIPE_UUID = "d81aaeaf-e172-4440-9225-868df030d27b"UUID the client uses for this multi recipe (BedrockProtocol MultiRecipe::TYPE_BANNER_ADD_PATTERN)
Methods
computeResults() protected
php
protected function computeResults(\pocketmine\crafting\CraftingGrid $grid) : ?arraygetIngredientList()
php
public function getIngredientList() : arraygetMultiRecipeUuid()
php
public function getMultiRecipeUuid() : string