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

Public Member Functions

 __construct (Block $theBlock, Player $thePlayer, array $theLines)
 
 getPlayer ()
 
 getLines ()
 
 getLine ($index)
 
 setLine ($index, $line)
 
- Public Member Functions inherited from BlockEvent
 __construct (Block $block)
 
 getBlock ()
 
- 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 BlockEvent
 $block
 
- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Called when a sign is changed by a player.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Block  $theBlock,
Player  $thePlayer,
array  $theLines 
)
Parameters
Block$theBlock
Player$thePlayer
string[]$theLines
44  {
45  parent::__construct($theBlock);
46  $this->player = $thePlayer;
47  $this->lines = $theLines;
48  }

Member Function Documentation

◆ getLine()

getLine (   $index)
Parameters
int$index0-3
Returns
string
69  {
70  return $this->lines[$index];
71  }

◆ getLines()

getLines ( )
Returns
string[]
60  {
61  return $this->lines;
62  }

◆ getPlayer()

getPlayer ( )
Returns
Player
53  {
54  return $this->player;
55  }

◆ setLine()

setLine (   $index,
  $line 
)
Parameters
int$index0-3
string$line
77  {
78  $this->lines[$index] = $line;
79  }

Field Documentation

◆ $handlerList

$handlerList = null
static

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