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

Public Member Functions

 __construct (Player $player, int $action=PlayerUseFishingRodEvent::ACTION_START_FISHING)
 
 getAction ()
 
- 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)
 

Data Fields

const ACTION_START_FISHING = 0
 
const ACTION_STOP_FISHING = 1
 

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,
int  $action = PlayerUseFishingRodEvent::ACTION_START_FISHING 
)

PlayerUseFishingRodEvent constructor.

Parameters
Player$player
int$action
41  {
42  $this->player = $player;
43  $this->action = $action;
44  }

Member Function Documentation

◆ getAction()

getAction ( )
Returns
int
49  : int{
50  return $this->action;
51  }

Field Documentation

◆ $handlerList

$handlerList = null
static

◆ ACTION_START_FISHING

const ACTION_START_FISHING = 0

◆ ACTION_STOP_FISHING

const ACTION_STOP_FISHING = 1

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