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

Public Member Functions

 __construct (Player $Player, Block $target, Item $itemInHand)
 
 getItem ()
 
 setItem (Item $item)
 
 getBlock ()
 
- 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,
Block  $target,
Item  $itemInHand 
)
Parameters
Player$Player
Block$target
Item$itemInHand
42  {
43  $this->player = $Player;
44  $this->target = $target;
45  $this->item = $itemInHand;
46  }

Member Function Documentation

◆ getBlock()

getBlock ( )
Returns
Block
65  {
66  return $this->target;
67  }

◆ getItem()

getItem ( )
Returns
Item
51  {
52  return $this->item;
53  }

◆ setItem()

setItem ( Item  $item)
Parameters
Item$item
58  {
59  $this->item = $item;
60  }

Field Documentation

◆ $handlerList

$handlerList = null
static

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