Genisys  Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
DropItemTransaction Class Reference
Inheritance diagram for DropItemTransaction:
[legend]
Collaboration diagram for DropItemTransaction:
[legend]

Public Member Functions

 __construct (Item $droppedItem)
 
 setSourceItem (Item $item)
 
 getInventory ()
 
 getSlot ()
 
 sendSlotUpdate (Player $source)
 
 getChange ()
 
 execute (Player $source)
 
- Public Member Functions inherited from BaseTransaction
 __construct ($inventory, $slot, Item $targetItem, $achievements=[], $transactionType=Transaction::TYPE_NORMAL)
 
 getCreationTime ()
 
 getInventory ()
 
 getSlot ()
 
 getTargetItem ()
 
 setTargetItem (Item $item)
 
 getFailures ()
 
 addFailure ()
 
 succeeded ()
 
 setSuccess ($value=true)
 
 getTransactionType ()
 
 getAchievements ()
 
 hasAchievements ()
 
 addAchievement (string $achievementName)
 
 sendSlotUpdate (Player $source)
 
 getChange ()
 
 execute (Player $source)
 

Data Fields

const TRANSACTION_TYPE = Transaction::TYPE_DROP_ITEM
 
- Data Fields inherited from Transaction
const TYPE_NORMAL = 0
 
const TYPE_DROP_ITEM = 1
 

Protected Attributes

 $inventory = null
 
 $slot = null
 
 $sourceItem = null
 
- Protected Attributes inherited from BaseTransaction
 $inventory
 
 $slot
 
 $targetItem
 
 $creationTime
 
 $transactionType = Transaction::TYPE_NORMAL
 
 $failures = 0
 
 $wasSuccessful = false
 
 $achievements = []
 

Constructor & Destructor Documentation

__construct ( Item  $droppedItem)
Parameters
Item$droppedItem

Member Function Documentation

execute ( Player  $source)
Parameters
Player$source
Returns
bool

Implements Transaction.

getInventory ( )
Returns
Inventory

Implements Transaction.

getSlot ( )
Returns
int

Implements Transaction.


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