GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
InventoryEvent Class Reference

Public Member Functions

 __construct (Inventory $inventory)
 
 getInventory ()
 
 getViewers ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 

Protected Attributes

 $inventory
 
- Protected Attributes inherited from Event
 $eventName = null
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Inventory  $inventory)

InventoryEvent constructor.

Parameters
Inventory$inventory
41  {
42  $this->inventory = $inventory;
43  }

Member Function Documentation

◆ getInventory()

getInventory ( )
Returns
Inventory
48  {
49  return $this->inventory;
50  }

◆ getViewers()

getViewers ( )
Returns
[]
55  {
56  return $this->inventory->getViewers();
57  }

Field Documentation

◆ $inventory

$inventory
protected

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