PHP Class pocketmine\inventory\CraftingManager

Show file Open project: iTXTech/Genisys Class Usage Examples

Public Properties

Property Type Description
$brewingRecipes BrewingRecipe[]
$furnaceRecipes FurnaceRecipe[]
$recipes pocketmine\inventory\Recipe[]

Protected Properties

Property Type Description
$recipeLookup pocketmine\inventory\Recipe[][]

Public Methods

Method Description
__construct ( boolean $useJson = false )
getFurnaceRecipes ( ) : FurnaceRecipe[]
getRecipe ( UUID $id ) : pocketmine\inventory\Recipe
getRecipes ( ) : pocketmine\inventory\Recipe[]
getRecipesByResult ( Item $item )
matchBrewingRecipe ( Item $input, Item $potion ) : BrewingRecipe
matchFurnaceRecipe ( Item $input ) : FurnaceRecipe
matchRecipe ( ShapelessRecipe $recipe ) : boolean
registerBrewingRecipe ( BrewingRecipe $recipe )
registerFurnaceRecipe ( FurnaceRecipe $recipe )
registerRecipe ( pocketmine\inventory\Recipe $recipe )
registerShapedRecipe ( ShapedRecipe $recipe )
registerShapelessRecipe ( ShapelessRecipe $recipe )
sort ( Item $i1, Item $i2 )

Protected Methods

Method Description
registerArmor ( )
registerBrewingStand ( )
registerDyes ( )
registerFood ( )
registerFurnace ( )
registerIngots ( )
registerPotions ( )
registerTools ( )
registerWeapons ( )

Private Methods

Method Description
createOneIngedientRecipe ( $recipeshape, $resultitem, $resultitemmeta, $resultitemamound, $ingedienttype, $ingredientmeta, $ingredientname, $inventoryType = "" )
sortAndAddRecipesArray ( &$recipes )

Method Details

__construct() public method

public __construct ( boolean $useJson = false )
$useJson boolean

getFurnaceRecipes() public method

public getFurnaceRecipes ( ) : FurnaceRecipe[]
return FurnaceRecipe[]

getRecipe() public method

public getRecipe ( UUID $id ) : pocketmine\inventory\Recipe
$id pocketmine\utils\UUID
return pocketmine\inventory\Recipe

getRecipes() public method

public getRecipes ( ) : pocketmine\inventory\Recipe[]
return pocketmine\inventory\Recipe[]

getRecipesByResult() public method

public getRecipesByResult ( Item $item )
$item pocketmine\item\Item

matchBrewingRecipe() public method

public matchBrewingRecipe ( Item $input, Item $potion ) : BrewingRecipe
$input pocketmine\item\Item
$potion pocketmine\item\Item
return BrewingRecipe

matchFurnaceRecipe() public method

public matchFurnaceRecipe ( Item $input ) : FurnaceRecipe
$input pocketmine\item\Item
return FurnaceRecipe

matchRecipe() public method

public matchRecipe ( ShapelessRecipe $recipe ) : boolean
$recipe ShapelessRecipe
return boolean

registerArmor() protected method

protected registerArmor ( )

registerBrewingRecipe() public method

public registerBrewingRecipe ( BrewingRecipe $recipe )
$recipe BrewingRecipe

registerBrewingStand() protected method

protected registerBrewingStand ( )

registerDyes() protected method

protected registerDyes ( )

registerFood() protected method

protected registerFood ( )

registerFurnace() protected method

protected registerFurnace ( )

registerFurnaceRecipe() public method

public registerFurnaceRecipe ( FurnaceRecipe $recipe )
$recipe FurnaceRecipe

registerIngots() protected method

protected registerIngots ( )

registerPotions() protected method

protected registerPotions ( )

registerRecipe() public method

public registerRecipe ( pocketmine\inventory\Recipe $recipe )
$recipe pocketmine\inventory\Recipe

registerShapedRecipe() public method

public registerShapedRecipe ( ShapedRecipe $recipe )
$recipe ShapedRecipe

registerShapelessRecipe() public method

public registerShapelessRecipe ( ShapelessRecipe $recipe )
$recipe ShapelessRecipe

registerTools() protected method

protected registerTools ( )

registerWeapons() protected method

protected registerWeapons ( )

sort() public method

public sort ( Item $i1, Item $i2 )
$i1 pocketmine\item\Item
$i2 pocketmine\item\Item

Property Details

$brewingRecipes public property

public BrewingRecipe[],pocketmine\inventory $brewingRecipes
return BrewingRecipe[]

$furnaceRecipes public property

public FurnaceRecipe[],pocketmine\inventory $furnaceRecipes
return FurnaceRecipe[]

$recipeLookup protected property

protected Recipe[][],pocketmine\inventory $recipeLookup
return pocketmine\inventory\Recipe[][]

$recipes public property

public Recipe[],pocketmine\inventory $recipes
return pocketmine\inventory\Recipe[]