Documentation

CraftingManager
in package
Uses DestructorCallbackTrait

Table of Contents

$furnaceRecipeManagers  : array<string|int, FurnaceRecipeManager>
$shapedRecipes  : array<string|int, array<string|int, ShapedRecipe>>
$shapelessRecipes  : array<string|int, array<string|int, ShapelessRecipe>>
$destructorCallbacks  : ObjectSet
$recipeRegisteredCallbacks  : ObjectSet
__construct()  : mixed
__destruct()  : mixed
getDestructorCallbacks()  : ObjectSet
getFurnaceRecipeManager()  : FurnaceRecipeManager
getRecipeRegisteredCallbacks()  : ObjectSet
getShapedRecipes()  : array<string|int, array<string|int, ShapedRecipe>>
getShapelessRecipes()  : array<string|int, array<string|int, ShapelessRecipe>>
matchRecipe()  : CraftingRecipe|null
matchRecipeByOutputs()  : array<string|int, CraftingRecipe>|Generator
registerShapedRecipe()  : void
registerShapelessRecipe()  : void
sort()  : int
Function used to arrange Shapeless Recipe ingredient lists into a consistent order.
hashOutputs()  : string
pack()  : array<string|int, Item>

Properties

$recipeRegisteredCallbacks

private ObjectSet $recipeRegisteredCallbacks
Tags
phpstan-var

ObjectSet<\Closure() : void>

Methods

matchRecipeByOutputs()

public matchRecipeByOutputs(array<string|int, Item$outputs) : array<string|int, CraftingRecipe>|Generator
Parameters
$outputs : array<string|int, Item>
Tags
phpstan-return

\Generator<int, CraftingRecipe, void, void>

Return values
array<string|int, CraftingRecipe>|Generator

sort()

Function used to arrange Shapeless Recipe ingredient lists into a consistent order.

public static sort(Item $i1, Item $i2) : int
Parameters
$i1 : Item
$i2 : Item
Return values
int

hashOutputs()

private static hashOutputs(array<string|int, Item$outputs) : string
Parameters
$outputs : array<string|int, Item>
Return values
string

pack()

private static pack(array<string|int, Item$items) : array<string|int, Item>
Parameters
$items : array<string|int, Item>
Return values
array<string|int, Item>

Search results