PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\inventory\CraftingTransactionGroup Class Reference
+ Inheritance diagram for pocketmine\inventory\CraftingTransactionGroup:
+ Collaboration diagram for pocketmine\inventory\CraftingTransactionGroup:

Public Member Functions

 __construct (SimpleTransactionGroup $group)
 
 addTransaction (Transaction $transaction)
 
 getRecipe ()
 
 getResult ()
 
 canExecute ()
 
 getMatchingRecipe ()
 
 execute ()
 
 getSource ()
 
 getCreationTime ()
 
 getInventories ()
 
 getTransactions ()
 
 hasExecuted ()
 

Protected Member Functions

 matchItems (array &$needItems, array &$haveItems)
 

Protected Attributes

 $input = []
 
 $output = []
 
 $recipe = null
 
 $hasExecuted = false
 
 $source = null
 
 $inventories = []
 
 $transactions = []
 

Detailed Description

Definition at line 28 of file CraftingTransactionGroup.php.

Member Function Documentation

pocketmine\inventory\CraftingTransactionGroup::addTransaction ( Transaction  $transaction)
Parameters
Transaction$transaction

Implements pocketmine\inventory\TransactionGroup.

Definition at line 46 of file CraftingTransactionGroup.php.

References pocketmine\inventory\SimpleTransactionGroup\matchItems().

+ Here is the call graph for this function:

pocketmine\inventory\CraftingTransactionGroup::canExecute ( )
Returns
bool

Implements pocketmine\inventory\TransactionGroup.

Definition at line 71 of file CraftingTransactionGroup.php.

References pocketmine\inventory\CraftingTransactionGroup\getMatchingRecipe().

Referenced by pocketmine\inventory\CraftingTransactionGroup\execute().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pocketmine\inventory\CraftingTransactionGroup::execute ( )
Returns
bool

Implements pocketmine\inventory\TransactionGroup.

Definition at line 90 of file CraftingTransactionGroup.php.

References pocketmine\inventory\CraftingTransactionGroup\canExecute(), pocketmine\Server\getInstance(), pocketmine\inventory\CraftingTransactionGroup\getMatchingRecipe(), pocketmine\inventory\SimpleTransactionGroup\getSource(), and pocketmine\inventory\SimpleTransactionGroup\hasExecuted().

+ Here is the call graph for this function:

pocketmine\inventory\SimpleTransactionGroup::getCreationTime ( )
inherited
Returns
float

Implements pocketmine\inventory\TransactionGroup.

Definition at line 59 of file SimpleTransactionGroup.php.

pocketmine\inventory\SimpleTransactionGroup::getInventories ( )
inherited
Returns
Inventory[]

Implements pocketmine\inventory\TransactionGroup.

Definition at line 63 of file SimpleTransactionGroup.php.

pocketmine\inventory\CraftingTransactionGroup::getMatchingRecipe ( )
Returns
Recipe

Definition at line 82 of file CraftingTransactionGroup.php.

References pocketmine\Server\getInstance().

Referenced by pocketmine\inventory\CraftingTransactionGroup\canExecute(), and pocketmine\inventory\CraftingTransactionGroup\execute().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pocketmine\inventory\CraftingTransactionGroup::getRecipe ( )

Gets the Items that have been used

Returns
Item[]

Definition at line 58 of file CraftingTransactionGroup.php.

Referenced by pocketmine\inventory\CraftingManager\matchTransaction().

+ Here is the caller graph for this function:

pocketmine\inventory\CraftingTransactionGroup::getResult ( )
Returns
Item

Definition at line 65 of file CraftingTransactionGroup.php.

Referenced by pocketmine\inventory\CraftingManager\matchTransaction().

+ Here is the caller graph for this function:

pocketmine\inventory\SimpleTransactionGroup::getSource ( )
inherited
Returns
Player

Definition at line 55 of file SimpleTransactionGroup.php.

Referenced by pocketmine\inventory\CraftingTransactionGroup\execute(), and pocketmine\inventory\SimpleTransactionGroup\execute().

+ Here is the caller graph for this function:

pocketmine\inventory\SimpleTransactionGroup::getTransactions ( )
inherited
Returns
Transaction[]

Implements pocketmine\inventory\TransactionGroup.

Definition at line 67 of file SimpleTransactionGroup.php.

pocketmine\inventory\SimpleTransactionGroup::hasExecuted ( )
inherited
Returns
bool

Implements pocketmine\inventory\TransactionGroup.

Definition at line 162 of file SimpleTransactionGroup.php.

Referenced by pocketmine\inventory\CraftingTransactionGroup\execute(), and pocketmine\inventory\SimpleTransactionGroup\execute().

+ Here is the caller graph for this function:

pocketmine\inventory\SimpleTransactionGroup::matchItems ( array &  $needItems,
array &  $haveItems 
)
protectedinherited
Parameters
Item[]$needItems
Item[]$haveItems
Returns
bool

Definition at line 94 of file SimpleTransactionGroup.php.

Referenced by pocketmine\inventory\CraftingTransactionGroup\addTransaction(), and pocketmine\inventory\SimpleTransactionGroup\canExecute().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: