Skip to content

ShapedRecipeData ​

final class · pocketmine\crafting\json\ShapedRecipeData · source

Implements JsonSerializable

Properties ​

$block ​

php
public string $block

$input ​

php
public array $input

$output ​

php
public array $output

$priority ​

php
public int $priority

$shape ​

php
public array $shape

$unlockingIngredients ​

php
public array $unlockingIngredients

Methods ​

__construct() ​

php
public function __construct(array $shape, array $input, array $output, string $block, int $priority, array $unlockingIngredients = [])

TODO: convert this to use promoted properties - avoiding them for now since it would break JsonMapper

jsonSerialize() ​

php
public function jsonSerialize() : array

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.