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

Public Member Functions

 __construct (Player $player, Item $item, $fishingHook=null)
 
 getItem ()
 
 getHook ()
 
- 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
 

Detailed Description

Called when a player uses the fishing rod

Constructor & Destructor Documentation

◆ __construct()

__construct ( Player  $player,
Item  $item,
  $fishingHook = null 
)
Parameters
Player$player
Item$item
$fishingHook
47  {
48  $this->player = $player;
49  $this->item = $item;
50  $this->hook = $fishingHook;
51  }

Member Function Documentation

◆ getHook()

getHook ( )
Returns
null|FishingHook
63  {
64  return $this->hook;
65  }

◆ getItem()

getItem ( )
Returns
Item
56  {
57  return clone $this->item;
58  }

Field Documentation

◆ $handlerList

$handlerList = null
static

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