◆ __construct()
__construct |
( |
Player |
$player = null | ) |
|
- Parameters
-
51 $this->transactionQueue = new \SplQueue();
52 $this->transactionsToRetry = new \SplQueue();
◆ addTransaction()
- Parameters
-
For dropping items, the target inventory is open air, a.k.a. null.
Implements TransactionQueue.
87 $this->transactionQueue->enqueue($transaction);
88 if($transaction->getInventory() instanceof Inventory){
90 $this->inventories[spl_object_hash($transaction)] = $transaction->getInventory();
92 $this->lastUpdate = microtime(
true);
93 $this->transactionCount += 1;
◆ getInventories()
◆ getPlayer()
◆ getTransactionCount()
◆ getTransactions()
◆ $inventories
◆ $lastUpdate
◆ $player
◆ $transactionCount
◆ $transactionQueue
◆ $transactionsToRetry
The documentation for this class was generated from the following file:
- src/pocketmine/inventory/SimpleTransactionQueue.php