PHP Class pocketmine\inventory\CraftingManager

Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Méthodes publiques

Свойство Type Description
$brewingRecipes BrewingRecipe[]
$furnaceRecipes FurnaceRecipe[]
$recipes pocketmine\inventory\Recipe[]

Protected Properties

Свойство Type Description
$recipeLookup pocketmine\inventory\Recipe[][]

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode Description
registerArmor ( )
registerBrewingStand ( )
registerDyes ( )
registerFood ( )
registerFurnace ( )
registerIngots ( )
registerPotions ( )
registerTools ( )
registerWeapons ( )

Private Methods

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

Method Details

__construct() public méthode

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

getFurnaceRecipes() public méthode

public getFurnaceRecipes ( ) : FurnaceRecipe[]
Résultat FurnaceRecipe[]

getRecipe() public méthode

public getRecipe ( UUID $id ) : pocketmine\inventory\Recipe
$id pocketmine\utils\UUID
Résultat pocketmine\inventory\Recipe

getRecipes() public méthode

public getRecipes ( ) : pocketmine\inventory\Recipe[]
Résultat pocketmine\inventory\Recipe[]

getRecipesByResult() public méthode

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

matchBrewingRecipe() public méthode

public matchBrewingRecipe ( Item $input, Item $potion ) : BrewingRecipe
$input pocketmine\item\Item
$potion pocketmine\item\Item
Résultat BrewingRecipe

matchFurnaceRecipe() public méthode

public matchFurnaceRecipe ( Item $input ) : FurnaceRecipe
$input pocketmine\item\Item
Résultat FurnaceRecipe

matchRecipe() public méthode

public matchRecipe ( ShapelessRecipe $recipe ) : boolean
$recipe ShapelessRecipe
Résultat boolean

registerArmor() protected méthode

protected registerArmor ( )

registerBrewingRecipe() public méthode

public registerBrewingRecipe ( BrewingRecipe $recipe )
$recipe BrewingRecipe

registerBrewingStand() protected méthode

protected registerBrewingStand ( )

registerDyes() protected méthode

protected registerDyes ( )

registerFood() protected méthode

protected registerFood ( )

registerFurnace() protected méthode

protected registerFurnace ( )

registerFurnaceRecipe() public méthode

public registerFurnaceRecipe ( FurnaceRecipe $recipe )
$recipe FurnaceRecipe

registerIngots() protected méthode

protected registerIngots ( )

registerPotions() protected méthode

protected registerPotions ( )

registerRecipe() public méthode

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

registerShapedRecipe() public méthode

public registerShapedRecipe ( ShapedRecipe $recipe )
$recipe ShapedRecipe

registerShapelessRecipe() public méthode

public registerShapelessRecipe ( ShapelessRecipe $recipe )
$recipe ShapelessRecipe

registerTools() protected méthode

protected registerTools ( )

registerWeapons() protected méthode

protected registerWeapons ( )

sort() public méthode

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

Property Details

$brewingRecipes public_oe property

public BrewingRecipe[],pocketmine\inventory $brewingRecipes
Résultat BrewingRecipe[]

$furnaceRecipes public_oe property

public FurnaceRecipe[],pocketmine\inventory $furnaceRecipes
Résultat FurnaceRecipe[]

$recipeLookup protected_oe property

protected Recipe[][],pocketmine\inventory $recipeLookup
Résultat pocketmine\inventory\Recipe[][]

$recipes public_oe property

public Recipe[],pocketmine\inventory $recipes
Résultat pocketmine\inventory\Recipe[]