Property | Type | Description | |
---|---|---|---|
$achievements | string | ||
$creationTime | float | ||
$failures | integer | ||
$inventory | pocketmine\inventory\Inventory | ||
$slot | integer | ||
$targetItem | |||
$transactionType | integer | ||
$wasSuccessful | boolean |
Method | Description | |
---|---|---|
__construct ( pocketmine\inventory\Inventory $inventory, integer $slot, |
||
addAchievement ( string $achievementName ) | ||
addFailure ( ) | ||
execute ( |
||
getAchievements ( ) | ||
getChange ( ) : |
Returns the change in inventory resulting from this transaction | |
getCreationTime ( ) | ||
getFailures ( ) | ||
getInventory ( ) | ||
getSlot ( ) | ||
getTargetItem ( ) | ||
getTransactionType ( ) | ||
hasAchievements ( ) | ||
sendSlotUpdate ( |
||
setSuccess ( $value = true ) | ||
setTargetItem ( |
||
succeeded ( ) |
public __construct ( pocketmine\inventory\Inventory $inventory, integer $slot, |
||
$inventory | pocketmine\inventory\Inventory | |
$slot | integer | |
$targetItem | ||
$achievements | string[] | |
$transactionType | integer |
public addAchievement ( string $achievementName ) | ||
$achievementName | string |
public getChange ( ) : |
||
return |
public sendSlotUpdate ( |
||
$source | Sends a slot update to inventory viewers For successful transactions, update non-source viewers (source does not need updating) For failed transactions, update the source (non-source viewers will see nothing anyway) |
protected Inventory,pocketmine\inventory $inventory | ||
return | pocketmine\inventory\Inventory |
protected Item,pocketmine\item $targetItem | ||
return |