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

Public Member Functions

 __construct (Player $player, Item $item, $inventorySlot, $slot)
 
 getSlot ()
 
 getInventorySlot ()
 
 getItem ()
 
- Public Member Functions inherited from PlayerEvent
 getPlayer ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 
- Public Member Functions inherited from Cancellable
 isCancelled ()
 
 setCancelled ($forceCancel=false)
 

Static Public Attributes

static $handlerList = null
 

Additional Inherited Members

- Protected Attributes inherited from PlayerEvent
 $player
 
- Protected Attributes inherited from Event
 $eventName = null
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Player  $player,
Item  $item,
  $inventorySlot,
  $slot 
)

PlayerItemHeldEvent constructor.

Parameters
Player$player
Item$item
$inventorySlot
$slot
43  {
44  $this->player = $player;
45  $this->item = $item;
46  $this->inventorySlot = (int) $inventorySlot;
47  $this->slot = (int) $slot;
48  }

Member Function Documentation

◆ getInventorySlot()

getInventorySlot ( )
Returns
int
60  {
61  return $this->inventorySlot;
62  }

◆ getItem()

getItem ( )
Returns
Item
67  {
68  return $this->item;
69  }

◆ getSlot()

getSlot ( )
Returns
int
53  {
54  return $this->slot;
55  }

Field Documentation

◆ $handlerList

$handlerList = null
static

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